Hello. I am trying to add wizard steps dynamically in code-behind but keep getting an exception
"ActiveViewIndex is being set to '0'. It must be smaller than the current
number of View controls '0'. For dynamically added views, make sure they are
added before or in Page_PreInit event."
I found I have some fundamental error in my building, since I got this error after trying to build the simplest wizard in a new web-site just opened...
Please help me. here is a simple code that generates this error. Thanks!
public partial class _Default : System.Web.UI.Page
{
List<WizardStep> steps = new List<WizardStep>();
protected void Page_PreInit(object sender, EventArgs e)
{
WizardStep Step1 = new WizardStep();
steps.Add(Step1); ...
Go to the complete details ...