ASP.NET - What is the easiest generic way to save form data and retrieve it when the user navigates back to the page? -


what easiest way save form data , retrieve when user navigates page?

we have application process consists of several web forms. if user clicks go step auto-populate fields. assuming there common generic way without having mess individual controls - it?

put forms on same page , enable viewstate.

that is, instead of using 3 distinct pages, use single page has panels each of virtual "pages." keep track of page user on (with viewstate-managed property), , show/hide forms appropriate page.

the next/back controls should post , increment/decrement current page.

since it's same form, , it's posting itself, viewstate persist field values automatically.

the thing won't work if click browser's "back" button. block using window.onbeforeunload prevent it.


Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -