How do I call a jq function from vb.net code behind?
I need to call this from the code behind if there is a 开发者_Python百科certain value read in from a query string variable ie
x as string = request.querysting("Var")
if x = 'Hide" then
function guestHide()
{
$(".panel").hide("slow");
}
end if
in your aspx page do this
<%
if (Request.QueryString["var"].ToString() == "Hide") {
%>
function guestHide() { $(".panel").hide("slow"); }
<%
}
%>
The above is C#, it should be easily translatable to VB.
精彩评论