bill
bill

Reputation: 411

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 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

Answers (1)

Caimen
Caimen

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

Related Questions