S
Sari
Hi,
I've got two pages, page1.aspx and page2.aspx.
I've got a problem when I'm trying to access the
session variables in the second page. The session state is
null when I'm trying to get the values.
Code for page1.aspx
------------------------
Session.Add("str", "test");
Response.Redirect("Page2.aspx");
Code for page2.aspx
-------------------------
string str1 = Session["str"].tostring();
I don't know whats wrong. Please help!
Thanks,
Sari
I've got two pages, page1.aspx and page2.aspx.
I've got a problem when I'm trying to access the
session variables in the second page. The session state is
null when I'm trying to get the values.
Code for page1.aspx
------------------------
Session.Add("str", "test");
Response.Redirect("Page2.aspx");
Code for page2.aspx
-------------------------
string str1 = Session["str"].tostring();
I don't know whats wrong. Please help!
Thanks,
Sari