Page State

  • Thread starter Thread starter Jeremy Ames
  • Start date Start date
J

Jeremy Ames

I am having issues with keeping form field values between pages when
navigating using the back command on the browser. I have a form that a user
fills out, and they click a button that will take them to another page to
view the information, a preview page if you will. This preview page has a
button on it that calls window.history.back() from javascript. Sometimes,
not all the time, when they click this button the information is preserved
on the original form, other times the entire form is blank. Why is this, and
how can I fix it?

--

Thanks,

Jeremy Ames
Code Powered Technologies
 
Don't use the history to navigate back. It's not reliable with ASP.Net and
forms. Your best bet is to navigate back to the page and use logic to
re-populate it.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Back
Top