Restore page session state on postback
Posted on 2009-07-08
Another newbie question.... Please HELP!!! =)
I have built an online health questionnaire for our clients with about 49 questions divided into steps 1 - 8 with the steps hidden until its turn to become visible. Everything is working great, expect a problem with the asp button postback. The problem is under each step I have a asp button that continues to the next step, if a user clicks on the back button and then goes back to hit the continue button the values that he/she entered for the next step has been removed. I have session state enabled. is there a restore page session state function?
1. user enters data on step 1
2. hits continue
3. user enters data on step 2
4. hits the back button to step 1
5. after fixing their mistake on step 1, they then click on continue to step 2
6. back at step 2, all the data entered in is gone
Most of my questions are radiobuttonlist and checkboxlist
All of these steps are on the same page, just hidden until called upon from the asp button.
By the way on page load event I have
if page.ispostback() then
step1.visible = false
step2. visible = false