Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retaining values in previous page

Status
Not open for further replies.

shaminoo

Programmer
Aug 28, 2006
7
US
Hi,
I am new to asp.net..
I have made a web page with certain text fields and a "submit" button click.When i click on "submit" it goes to next page which has two more button--"edit" and "confirm".
When i click on "Edit", it should go to previous page to edit values.
But as i click on "edit",it goes to previous page but does not have all the values that i entered earlier..the text fields are empty.What should i do ??please help...
**I have maintained a session for the text fields
 
**I have maintained a session for the text fields
If you've done that,, you simply have to check if that session variable exists. If it does, populate the textbox with it.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
U can also use Server.Transfer with its 2nd attribute which is boolean preserve form attribute set to true.
 
You could also do this using panels to display / hide the different stages.

click here for code example

eg, Have two panels on one page.

Panel1 : Containing the text fields and submit button
Panel2 : Containing the edit and confirm button

Set Panel2 to not be visible as default.

In the onClick method for submit button hide Panel1 and show panel2.

Then revet the logic in the onClick for the Edit button.

Hope that helps,

Web Design Wetherby
Personal Web Design Service
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top