ソースを参照

2007-07-15 Igor Zelmanovich <[email protected]>

	* BaseValidator.cs: for NET_2_0: fixed client side validation.
	validation is performed in WebForm_DoPostback, 
	and there is no need to do it twice in ValidatorOnSubmit.


svn path=/trunk/mcs/; revision=82011
Igor Zelmanovich 18 年 前
コミット
cda4e10986

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

@@ -399,8 +399,12 @@ namespace System.Web.UI.WebControls {
 									 "\n" + 
 									 "function ValidatorOnSubmit() {\n" + 
 									 "        if (Page_ValidationActive) {\n" + 
+#if NET_2_0
+									 "                return ValidatorCommonOnSubmit();\n" +
+#else		
 									 "                if (!ValidatorCommonOnSubmit())\n" +
 									 "                        return Page_ClientValidate ();\n" +
+#endif		
 									 "        }\n" + 
 									 "        return true;\n" + 
 									 "}\n" + 

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

@@ -1,3 +1,9 @@
+2007-07-15 Igor Zelmanovich <[email protected]>
+
+	* BaseValidator.cs: for NET_2_0: fixed client side validation.
+	validation is performed in WebForm_DoPostback, 
+	and there is no need to do it twice in ValidatorOnSubmit.
+
 2007-07-15 Igor Zelmanovich <[email protected]>
 
 	* Calendar.cs: fixed: correct 'id' attribute is rendered.