session extend on multi pages
-
i am using Visual Studio 2005 with C#. i want to know if it is possible that the value of a Session in a textbox can be extended on more than one page. ex. Session["x"]=Textbox1.Text; this session "x",i want to use in many pages. pl help
Yes, You can it same way. At once you set the value in session you can access it any page, if session is not expired. Get session value:
if( Session["x"] != null )
String txtValue=Convert.ToString(Session["x"]);Parwej Ahamad g.parwez@gmail.com
modified on Friday, October 31, 2008 1:59 PM
-
Yes, You can it same way. At once you set the value in session you can access it any page, if session is not expired. Get session value:
if( Session["x"] != null )
String txtValue=Convert.ToString(Session["x"]);Parwej Ahamad g.parwez@gmail.com
modified on Friday, October 31, 2008 1:59 PM
-
See my edited post
Parwej Ahamad g.parwez@gmail.com