[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-devel-list
Subject:    [Mono-dev] Bug in System.Web.UI.WebControls.Wizard
From:       "Vladimir Krasnov" <vladimirk () mainsoft ! com>
Date:       2006-05-25 12:09:35
Message-ID: DA63C6E8B207E748B20D46DFED7B772D03098371 () dhost002-45 ! dex002 ! intermedia ! net
[Download RAW message or body]

Hello,

There is a bug in Wizard control, when some of the controls from some
wizard step execute wizard's MoveTo method. At this stage, wizard
control already built its control hierarchy and the next stage is
render, which renders a different wizard step (that prepared before
MoveTo call). Render should firstly check whether active step has
changed, if yes, it should reapply navigation templates and update
ActiveViewIndex of Multi view control.=20
The possible solution is to call CreateControlHierarchy from Render, but
if you have a better idea please suggest.

Vladimir Krasnov

["Wizard.cs.patch" (application/octet-stream)]

Index: Wizard.cs
===================================================================
--- Wizard.cs	(revision 61101)
+++ Wizard.cs	(working copy)
@@ -1219,6 +1219,9 @@
 		
 		protected internal override void Render (HtmlTextWriter writer)
 		{
+			if (multiView.ActiveViewIndex != ActiveStepIndex)
+				CreateControlHierarchy ();
+
 			wizardTable.ApplyStyle (ControlStyle);
 
 			foreach (object[] styleDef in styles)

["WizardBug.zip" (application/x-zip-compressed)]

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic