Author: igorz
Date: 2006-09-19 06:58:13 -0400 (Tue, 19 Sep 2006)
New Revision: 65629
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI.WebControls/CheckBoxList.cs
Log:
* CheckBoxList.cs:
make it to consider CausesValidation and ValidationGroup properties
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-09-19 10:49:59 UTC (rev 65628)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-09-19 10:58:13 UTC (rev 65629)
@@ -1,5 +1,10 @@
2006-09-19 Igor Zelmanovich <[EMAIL PROTECTED]>
+ * CheckBoxList.cs:
+ make it to consider CausesValidation and ValidationGroup properties
+
+2006-09-19 Igor Zelmanovich <[EMAIL PROTECTED]>
+
* RadioButton.cs:
Page.Validate() is called when CausesValidation=true
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/CheckBoxList.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/CheckBoxList.cs
2006-09-19 10:49:59 UTC (rev 65628)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/CheckBoxList.cs
2006-09-19 10:58:13 UTC (rev 65629)
@@ -238,6 +238,10 @@
#endif
void RaisePostDataChangedEvent ()
{
+#if NET_2_0
+ if (CausesValidation)
+ Page.Validate (ValidationGroup);
+#endif
OnSelectedIndexChanged (EventArgs.Empty);
}
@@ -340,6 +344,10 @@
check_box.Checked = item.Selected;
check_box.TextAlign = TextAlign;
check_box.Enabled = Enabled;
+#if NET_2_0
+ check_box.ValidationGroup = ValidationGroup;
+ check_box.CausesValidation = CausesValidation;
+#endif
check_box.RenderControl (writer);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches