ASPnetNovice
Programmer
Hello,
I was wondering how can I maintain state after I leave a page.
In other words I have a 6 page questionaire that I am creating online, and If a user fills page 1 and then goes to page 2 but for some reason decides to go back to page 1; I need to be able to have my application remember the information that was already typed in page 1.
My idea was to store the contents of the view state hidden field ("__VIEWSTATE") into a session variable and then restore that value when necessary. (will this work ?)
I am having difficulties with this approach , for one thing I can't find a way to edit the value of the "__VIEWSTATE" variable.
How can one access the value attribute of a simple tag such as <input type="hidden" values=""> from code ???
I will appreciate any suggestion.
Thanks
I was wondering how can I maintain state after I leave a page.
In other words I have a 6 page questionaire that I am creating online, and If a user fills page 1 and then goes to page 2 but for some reason decides to go back to page 1; I need to be able to have my application remember the information that was already typed in page 1.
My idea was to store the contents of the view state hidden field ("__VIEWSTATE") into a session variable and then restore that value when necessary. (will this work ?)
I am having difficulties with this approach , for one thing I can't find a way to edit the value of the "__VIEWSTATE" variable.
How can one access the value attribute of a simple tag such as <input type="hidden" values=""> from code ???
I will appreciate any suggestion.
Thanks