开发者

How do I call a jq function from vb.net code behind?

开发者 https://www.devze.com 2023-01-18 02:09 出处:网络
I need to call this from the code behind if there is a 开发者_Python百科certain value read in from a

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消