use ResolveClientUrl instead of ResolveUrl to be complient with MS.NET
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / WizardStepCollection.cs
index b8ecb1410ced29d9fa91bb59ab686528946cd3d5..2607688549e3c18872505b73f4415b364e779f63 100644 (file)
@@ -68,6 +68,7 @@ namespace System.Web.UI.WebControls
                public void Add (WizardStepBase wizardStep)
                {
                        if (wizardStep == null) throw new ArgumentNullException ("wizardStep");
+                       wizardStep.SetWizard (wizard);
                        list.Add (wizardStep);
                        wizard.UpdateViews ();
                }
@@ -75,6 +76,7 @@ namespace System.Web.UI.WebControls
                public void AddAt (int index, WizardStepBase wizardStep)
                {
                        if (wizardStep == null) throw new ArgumentNullException ("wizardStep");
+                       wizardStep.SetWizard (wizard);
                        list.Insert (index, wizardStep);
                        wizard.UpdateViews ();
                }