1 <%@ Page Language="C#" AutoEventWireup="True" %>
7 <script runat="server">
8 void ButtonClick(Object sender, EventArgs e)
13 Label.Text="Area is valid.";
17 Label.Text="Area is not valid!!";
30 Enter a number from 1 to 10:
34 <asp:TextBox id="TextBox1"
39 <asp:RangeValidator id="Range1"
40 ValidationGroup="Area1"
41 ControlToValidate="TextBox1"
45 EnableClientScript="false"
46 Text="The value must be from 1 to 10!"
51 <asp:Label id="Label1"
56 <asp:Button id="Button1"
57 ValidationGroup="Area1"
65 Enter a number from 1 to 10:
69 <asp:TextBox id="TextBox1"
74 <asp:RangeValidator id="Range1"
75 ValidationGroup="Area2"
76 ControlToValidate="TextBox1"
80 EnableClientScript="false"
81 Text="The value must be from 1 to 10!"
86 <asp:Label id="Label1"
91 <asp:Button id="Button1"
92 ValidationGroup="Area2"