I am making an application in asp.net(c#,visual studio 2008). In this I make a page in which there is a 'proceed' link button. on clicking this button will go to the next page.on the next page there is a 'back' link button.I want a code such that when click on this back button then the values that have been entered in the previous page is preserved(i.e displayed on the controls in which have been filled).Can anyone help me for solving this simple problem?
I know this is not a direct answer to your question, but it may be a simpler approach:
Just a suggestion, but long as you're using ASP.NET consider not using separate pages, but instead use the Wizard control.
It sounds like you're creating a wizard-style interface anyway, and the Wizard control solves a lot of these issues for you a lot more simply than other approaches. It "just works" and works beautifully.
This page has even more useful links: http://weblogs.asp.net/scottgu/archive/2006/02/21/438732.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With