Quote:
Originally Posted by nevaeh.aaric
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....