views:

12

answers:

1

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

A: 

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.

Caimen
hmm, im getting an error with this in my converter
bill
I'm doing this purely from memory, I haven't done VB in forever.<% IF Request.QueryString("var") = "Hide" Then %>$(".panel").hide("slow"); }<% End If %>
Caimen
Cool thank you very much
bill