Bladeren bron

* CheckBoxList.cs:
make it to consider CausesValidation and ValidationGroup properties


svn path=/trunk/mcs/; revision=65629

Igor Zelmanovich 19 jaren geleden
bovenliggende
commit
b2b0eec911

+ 5 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,8 @@
+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: 

+ 8 - 0
mcs/class/System.Web/System.Web.UI.WebControls/CheckBoxList.cs

@@ -238,6 +238,10 @@ namespace System.Web.UI.WebControls {
 #endif
 		void RaisePostDataChangedEvent ()
 		{
+#if NET_2_0
+			if (CausesValidation)
+				Page.Validate (ValidationGroup);
+#endif
 			OnSelectedIndexChanged (EventArgs.Empty);
 		}
 
@@ -340,6 +344,10 @@ namespace System.Web.UI.WebControls {
 			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);
 		}