Click to See Complete Forum and Search --> : ASP(active serber pages


February 28th, 2000, 10:17 PM
hi
can anyone tell me how to assign a variable content to a session object. code is like this
sub node_click
thisdocid = treenode.text
<% session("docid") = thisdocid %>
end sub
help me please
thanks

Lothar Haensler
February 29th, 2000, 01:08 AM
you are obvisously trying to mix client-side script and server-side script. That's not going to work.
better assign the value of the client variable to an INPUT TYPE="HIDDEN" and pass that in your FORM to the server. You can then assign the variable value to the session variable.