asp.net wizard server control not retainning values

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
12/15/2010 4:03:02 PM
Gravatar
Total Posts 2

asp.net wizard server control not retainning values

Hi i'm using Asp.net server control in a custom module and using Ajax to refresh the pages within the steps. Everything seemed to be working including validations but once the wizard moves to the next step the previous steps values seems to be lost except for the dropdown values which shows their defaults. I have removed the UpdatePanel so as to force a postback but the situation is the same. Please am I doing anything wrong and if I am what can I do to correct this. Thanks.

12/16/2010 6:56:03 AM
Gravatar
Total Posts 18439

Re: asp.net wizard server control not retainning values

make sure you have

Page.EnableViewState = true; in OnInit event of your module control

Hope it helps,

Joe

12/21/2010 12:00:28 PM
Gravatar
Total Posts 2

Re: asp.net wizard server control not retainning values

My bad, I should have replied a while ago but I was busy working on a bid I had to submit. I checked it out today and it worked like charm. It should have occurred to me but I guess I totally missed it cos I decided to drop the web control for an .aspx page based module,which I really don't want to use. However setting Page.EnableViewState = true solved all my problems. You practically saved my project and made me happy wink;

Thank you Joe.

You must sign in to post in the forums. This thread is closed to new posts.