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
--
Mohamed Sharaf
Microsoft GTSC Developer support for Middle East
"selen" <skiyanc@.yahoo.com> wrote in message
news:OR$qP9M4DHA.488@.TK2MSFTNGP12.phx.gbl...
> 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.
Thank you.I find solution.
I used Session["key"]="value";
string=(string)Session["key"];
"Mohamed Sharaf" <Mohamed.Sharaf@.egdsc.microsoft.com>, iletide unu yazd
news:%23CALSVN4DHA.2388@.TK2MSFTNGP09.phx.gbl...
> 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
> --
> Mohamed Sharaf
> Microsoft GTSC Developer support for Middle East
>
> "selen" <skiyanc@.yahoo.com> wrote in message
> news:OR$qP9M4DHA.488@.TK2MSFTNGP12.phx.gbl...
> > 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.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment