Click here to Skip to main content
12,884,951 members (29,171 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET
we are making an application in studio 2008). In this we have made a page in which we have a submit button. on clicking on this submit button we go to next page.on this next page we have a back button.we want that when we click on this back button then the values that we have entered in the previous page it should display the values that which we have filled.
please give the solution
Posted 18-Jan-13 1:19am
Updated 18-Jan-13 1:42am
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You can use

Hidden Form Fields
Query Strings
Session Variables
Application Variables

to store your values between redirects and transfers.
and in turn can use these values to fill the form again
in my opinion sessions are safe n easy to handle.
Zafar Sultan 18-Jan-13 8:05am
Hello, I have striked last two possible options as using this method will cause dirty read problem. Data stored in Application Variables and Cache is available to all the users of the application. This may result in incorrect data when fetched on coming back. No hard feelings.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Simple Way You can used

first click button perform Empty all controls then respose.redirect after you click this page back button your page not preserved any value.
Tiwari Avinash 18-Jan-13 7:57am
hey rizwan she is trying to retain the values not to clear the fields if I'm not getting her wrong. wat say?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 18 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100