Ver Fonte

Page.Validate() is called when CausesValidation=true

svn path=/trunk/mcs/; revision=65627
Igor Zelmanovich há 19 anos atrás
pai
commit
fb3516bc83

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

@@ -1,3 +1,8 @@
+2006-09-19 Igor Zelmanovich <[email protected]>
+
+	* RadioButton.cs: 
+	Page.Validate() is called when CausesValidation=true
+		
 2006-09-19 Igor Zelmanovich <[email protected]>
 
 	* CheckBox.cs: 

+ 4 - 0
mcs/class/System.Web/System.Web.UI.WebControls/RadioButton.cs

@@ -131,6 +131,10 @@ namespace System.Web.UI.WebControls {
 #endif
 		void RaisePostDataChangedEvent ()
 		{
+#if NET_2_0
+			if (CausesValidation)
+				Page.Validate (ValidationGroup);
+#endif
 			OnCheckedChanged (EventArgs.Empty);
 		}