Hi there ...
simply no ...
because session variables are created on server and your
vbscript is running on the client side.
so th only way to use it send it your sub as a variable
like this :
<input type="button" value="click me"
onclick="vbscript_onClick('<%=Session("MyVariable"%>')">
and also there is an other way of using it.
you can use it like this too :
sub vbscript_onClick()
msgbox("<%=Session("MyVariable"%>"
end sub
that's it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.