开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜