I have a Wizard Control that has a user control for each step. Of course, on the first step IsPostBack is false when the page first loads. But when going to the next step IsPostBack is always true. What is the best pattern for figuring out when to databind each control within a step and maintaining viewstate when going from step to step since you can't use IsPostBack? I might add that user controls within the Wizard are bound to DataSource in code, not as part of the ascx markup.
ASP.Net Wizard Control, DataBinding, ViewState and PostBacks
asp.net
Related Topic
- C# – Dropdown binding and postbacks – ASP.NET
- Asp – ViewState problem in asp.net Wizard control
- ASP.Net Wizard – How to clear contents of web controls
- Asp – How to dump viewstate for a control while leaving it enabled for future postbacks
- ASP.NET DataSource Control “does not have a naming container” exception
- Viewstate of ascx lost between postbacks
Best Answer
If you databind a control which has viewstate on first page load then you will not need to databind again on postback.