开发者

ASP.net session alternative

开发者 https://www.devze.com 2023-02-19 23:54 出处:网络
I have a webform that is a survey for users to fill using a sequence of questions. I am storing the sequence reached by the user in session variable.

I have a webform that is a survey for users to fill using a sequence of questions. I am storing the sequence reached by the user in session variable.

The problem with this implementation is that: Suppose the user is at session 3 and press back, he will get the answers of session 2, which he wish to alter. If he now press next, he will be informed that not all questions of session 3 are filled.

Is there an alternative to Session variable that will allow me to solv开发者_如何学Pythone this problem?


You can store the step number as a hidden field on the form so that it is submitted along with the form. In this way you can respond to the relevant step even if the user uses the back button.

0

精彩评论

暂无评论...
验证码 换一张
取 消