开发者

Session Variable Not Being Saved When Using Wizard Control ASP.NET

I have a wizard control. When someone clicks a button within the wizard control I automaticall开发者_JAVA百科y advance to the next step (rather than forcing them to click next). However, this seems to cause the session state variable not to be saved. I've done some research and noticed that Response.Redirect does hard redirects that truncate page execution - and that you can add a false parameter to prevent this...what I'm wondering is if the wizard control is doing the same thing and if so, if I can add a parameter to this as well? Dave.


In my instance it ended up having to do with the point at which the button click control launched. e.g., if in the wizard I clicked a button and it loaded the next page in the wizard it would load the page_load before it would set the session variable in the button_click event. by moving the utilization of the session variable later in the loading process (after page_load), the button_click event triggers first.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜