Author: mhabersack
Date: 2007-05-07 05:34:29 -0400 (Mon, 07 May 2007)
New Revision: 76819
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI.WebControls/Wizard.cs
Log:
2007-05-07 Marek Habersack <[EMAIL PROTECTED]>
* Wizard.cs: additional checks to see whether the wizard needs to
move to a next step or not. Fixes bug #81532. Patch sent by Mike
Morano <[EMAIL PROTECTED]>, thanks!
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2007-05-07 09:32:11 UTC (rev 76818)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2007-05-07 09:34:29 UTC (rev 76819)
@@ -1,3 +1,9 @@
+2007-05-07 Marek Habersack <[EMAIL PROTECTED]>
+
+ * Wizard.cs: additional checks to see whether the wizard needs to
+ move to a next step or not. Fixes bug #81532. Patch sent by Mike
+ Morano <[EMAIL PROTECTED]>, thanks!
+
2007-05-07 Igor Zelmanovich <[EMAIL PROTECTED]>
* FormView.cs: fixed:
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/Wizard.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/Wizard.cs
2007-05-07 09:32:11 UTC (rev 76818)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/Wizard.cs
2007-05-07 09:34:29 UTC (rev 76819)
@@ -199,29 +199,31 @@
[DefaultValueAttribute (-1)]
[ThemeableAttribute (false)]
- public virtual int ActiveStepIndex {
- get {
- return activeStepIndex;
- }
- set {
- if (value < -1 || (value > WizardSteps.Count &&
(inited || WizardSteps.Count > 0)))
- throw new ArgumentOutOfRangeException
("The ActiveStepIndex must be less than WizardSteps.Count and at least -1");
-
- if (inited && !AllowNavigationToStep (value))
- return;
-
- activeStepIndex = value;
-
- if (inited) {
- multiView.ActiveViewIndex = value;
- if (stepDatalist != null) {
- stepDatalist.SelectedIndex =
value;
- stepDatalist.DataBind ();
- }
- OnActiveStepChanged (this,
EventArgs.Empty);
- }
- }
- }
+ public virtual int ActiveStepIndex {
+ get {
+ return activeStepIndex;
+ }
+ set {
+ if (value < -1 || (value > WizardSteps.Count &&
(inited || WizardSteps.Count > 0)))
+ throw new ArgumentOutOfRangeException ("The
ActiveStepIndex must be less than WizardSteps.Count and at least -1");
+
+ if (inited && !AllowNavigationToStep (value))
+ return;
+
+ if(activeStepIndex != value) {
+ activeStepIndex = value;
+
+ if (inited) {
+ multiView.ActiveViewIndex = value;
+ if (stepDatalist != null) {
+ stepDatalist.SelectedIndex
= value;
+ stepDatalist.DataBind ();
+ }
+ OnActiveStepChanged (this,
EventArgs.Empty);
+ }
+ }
+ }
+ }
[UrlPropertyAttribute]
[DefaultValueAttribute ("")]
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches