diff options
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI/Utils.cs')
-rw-r--r-- | mcs/class/System.Web/System.Web.UI/Utils.cs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/mcs/class/System.Web/System.Web.UI/Utils.cs b/mcs/class/System.Web/System.Web.UI/Utils.cs index d184ac9b1a8..48138375e13 100644 --- a/mcs/class/System.Web/System.Web.UI/Utils.cs +++ b/mcs/class/System.Web/System.Web.UI/Utils.cs @@ -3,10 +3,10 @@ * Class: Utils
*
* Author: Gaurav Vaish
- * Maintainer: gvaish@iitk.ac.in
+ * Maintainer-> gvaish@iitk.ac.in
* Implementation: yes
* Contact: <gvaish@iitk.ac.in>
- * Status: ?%
+ * Status: ??%
*
* (C) Gaurav Vaish (2001)
*/
@@ -30,5 +30,17 @@ namespace System.Web.UI }
return retVal;
}
+
+ internal static string GetClientValidatedEvent(/*Page page*/)
+ {
+ return "if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate();";
+ }
+
+ internal static string GetClientValidatedPostBack(Control control)
+ {
+ return (" { if (typeof(Page_ClientValidate) != 'function' || Page_ClientValidate()) " +
+ control.Page.GetPostBackEventReference(control) +
+ " } " );
+ }
}
}
|