View Single Post
  #7 (permalink)  
Old February 6th, 2010, 05:25 AM
Pankaj Manwatkar Pankaj Manwatkar is offline
Registered User
 
Join Date: Dec 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile

Quote:
Originally Posted by nevaeh.aaric View Post
I have a webpage that contains two textboxes and button.
when the user fill the two textboxes and click the button
then I need to navigate to another page.
The second page contains a hyper link which can navigate you to the first page.
so, when the user click the hyper link i am navigating to first page.
This time I need to show up the values in the textboxes what user gave before.
Hi....
You can do this by putting the value of your textbox in session variable
firstly declare the session variable in global.aspx..
like this...
Session["Variablename1"]=""
Session["Variablename1"]=""
....
now on button click event of first page.....write this code
Session["Variablename1"]=textbox1.text
Session["Variablename2"]=textbox2.text

and on first page load event write this....

textbox1.text= Session["Variablename1"]
textbox2.text= Session["Variablename2"]

or u can findcontrol of first page and the put this value in it........
hope this will help u....