Click here to Skip to main content
Rate this: bad
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
Edited 18-Jan-13 1:42am
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 at 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?
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 at 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.

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

  Print Answers RSS
0 OriginalGriff 324
1 Kornfeld Eliyahu Peter 160
2 Nelek 115
3 Gihan Liyanage 99
4 Sergey Alexandrovich Kryukov 94
0 Zubair MCA 55
1 OriginalGriff 55
2 sankarsan parida 55
3 harshavardhan12345678 45
4 Sandeep Londhe 45

Advertise | Privacy | Mobile
Web01 | 2.8.140827.1 | Last Updated 18 Jan 2013
Copyright © CodeProject, 1999-2014
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