Does anyone know how to pass a session variable to sub??? I created a session variable called sGroup. When I did the response.write, I can see the value, but I can't get the value when I did the msgbox "sgroup: " & sGroup. in the btnclient_onClick . Here is my code :
<html>
<%
sGroup=Session("sGroup"
Response.Write sGroup
%>
<SCRIPT LANGUAGE=VBScript>
Sub btnclient_OnClick()
msgbox "sgroup: " & sGroup '***getting nothing here??????
If sGroup="MH" then
document.url = "url"
Else
document.url = "url"
End If
End Sub
</script
Thanks in advance.
<html>
<%
sGroup=Session("sGroup"
Response.Write sGroup
%>
<SCRIPT LANGUAGE=VBScript>
Sub btnclient_OnClick()
msgbox "sgroup: " & sGroup '***getting nothing here??????
If sGroup="MH" then
document.url = "url"
Else
document.url = "url"
End If
End Sub
</script
Thanks in advance.