orm> </body> </html>
C#
<%@ Page Language="C#" AutoEventWireup="True" %> <html> <head> <title>RangeValidator Control (General Reference)</title> <script runat="server"> void ButtonClick(Object sender, EventArgs e) { if (Page.IsValid) { Label1.Text="Page is valid."; } else { Label1.Text="Page is not valid!!"; } } </script> </head> <body> <form id="Form1" runat="server"> <h3>RangeValidator Example</h3> Enter a number from 1 to 10: <br /> <asp:TextBox id="TextBox1" runat="server"/> <br /> <asp:RangeValidator id="Range1" ControlToValidate="TextBox1" MinimumValue="1" MaximumValue="10" Type="Integer" EnableClientScript="false"   |