Multistep webform submission
I need to collect lots of data from the user for our intranet application and store them in DB only if they provide all the required information. I am planning to use wizard kind of UI where the user has to navigate through each step and enter all the required information and Submit will happen in the last step. I am planning to use Usercontrols in panels in one aspx page for each step to collect inputs.
Now the question is how do you persist previous step(usercontrols) data til your reach final step for submission.
1) Session is one option if the size of data is small but in this case, it can be huge
2) Viewstate is another option but again I am doubtful whether it will persist the data when it is not posted back - that is I will show only one user control at any point of time and hide all the other user controls and so other controls will not be posted back. Otherwise I need to keep track of all the "value entered" usercontrols and keep posting back each one whenever I move to another step!!
Any other options?
Thanks
Ram