how to preserve the value of the previous page after clicking on back button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ruchichir
    New Member
    • Apr 2010
    • 4

    how to preserve the value of the previous page after clicking on back button

    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 is preserved(i.e displayed on the controls in which we have filled).
    please give the solution soon if possible
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    What back button are you talking about?
    Are you talking about the browser's back button or are you talking about a button that is part of the ASPX page that you have called "back"?

    -Frinny

    Comment

    • Blacky
      New Member
      • Jan 2009
      • 40

      #3
      Hi,

      You can use sessions or viewstate to handle this.Assign the values of the controls to session variable or viewstate variable.

      Regards,
      Blacky

      Comment

      Working...