Reputation: 411
I need to call this from the code behind if there is a 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
Upvotes: 2
Views: 409
Reputation: 2619
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.
Upvotes: 1