Author: juraj
Date: 2007-11-20 10:45:53 -0500 (Tue, 20 Nov 2007)
New Revision: 89984

Added:
   trunk/xsp/test/1.1/webcontrols/web_comparevalidator.aspx
Log:
Add test page for the CompareValidator control.



Added: trunk/xsp/test/1.1/webcontrols/web_comparevalidator.aspx
===================================================================
--- trunk/xsp/test/1.1/webcontrols/web_comparevalidator.aspx    2007-11-20 
15:43:16 UTC (rev 89983)
+++ trunk/xsp/test/1.1/webcontrols/web_comparevalidator.aspx    2007-11-20 
15:45:53 UTC (rev 89984)
@@ -0,0 +1,33 @@
+<%@ Page Language="C#" %>
+<html>
+<script runat="server">
+void Check_Click(Object src, EventArgs E) {
+       message.Text = "Entered data is " + (Page.IsValid ? "valid." : 
"invalid!");
+}
+</script>
+
+<head>
+<title>CompareValidator</title>
+</head>
+
+<body>
+<form runat="server">
+<asp:Label text="Enter twice the same string:" runat="server"/><br>
+<asp:TextBox id="Text1" runat="server" /> ==
+<asp:TextBox id="Text2" runat="server" />
+<asp:CompareValidator runat="server"
+       EnableClientScript="true"
+       ControlToValidate="Text1" ControlToCompare="Text2" Operation="Equal"
+       ErrorMessage="Strings do not match!"/><br />
+       
+<br />
+
+<asp:Button text="Check" onclick="Check_Click" runat="server"/><br/ >
+
+<br />
+
+<asp:Label id="message" runat="server"/>
+</form>
+</body>
+</html>
+

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to