session value

  • Thread starter Thread starter selen
  • Start date Start date
S

selen

I am using belove code.I want to send session's value a variable in another
page.

How can I take session value.





script="<Language=VBScript> session(\"Id\")= ";

script+= kullaniciId;

script+="</script>";

Page.RegisterStartupScript("Startup", script);



Thanks.
 
Hello Selen,
The result of your code will result code like that in the HTML page sent
to the browser
<script language=VBScript>
session("id")=123
</script>
and this code is a client side code so you can't affect the session
object on the server !!! I think you have to change you technique. If I
misunderstand you please tell me.

Thanks
 
Back
Top