Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
we are making an application in asp.net(visual 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
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hello
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.
  Permalink  
Comments
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
good
Please Sign up or sign in to vote.

Solution 2

You can use
 
Hidden Form Fields
Query Strings
UrlData
Cookies
Session Variables
Application Variables
Cache
 
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.
  Permalink  
v2
Comments
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 540
1 Sergey Alexandrovich Kryukov 432
2 Yogesh Kumar Tyagi 384
3 Prakriti Goyal 280
4 Maciej Los 205
0 OriginalGriff 6,472
1 Sergey Alexandrovich Kryukov 5,404
2 Maciej Los 3,434
3 Peter Leow 3,259
4 DamithSL 2,495


Advertise | Privacy | Mobile
Web01 | 2.8.140721.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