Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaurav Vaish <gvaish@mono-cvs.ximian.com>2001-12-28 03:41:50 +0300
committerGaurav Vaish <gvaish@mono-cvs.ximian.com>2001-12-28 03:41:50 +0300
commit53cade753c6af40dc4c7f684729b8057eaa4a854 (patch)
treeff140541cc04083369be5b4e13dd216e1f9be506 /mcs/class/System.Web/System.Web.UI/Utils.cs
parent6aea03e323e7f83863c21a66e70be53da7a4fb4d (diff)
2001-12-28 Gaurav Vaish <gvaish@iitk.ac.in>
* Utils.cs -- Added functions GetClientValidatedEvent, GetClientValidatedPostBack svn path=/trunk/mcs/; revision=1731
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI/Utils.cs')
-rw-r--r--mcs/class/System.Web/System.Web.UI/Utils.cs16
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) +
+ " } " );
+ }
}
}