RangeValidatorControl.ascx
上传用户:husern
上传日期:2022-03-24
资源大小:534k
文件大小:1k
- <%@ Register Assembly="Itenso.WebUserForms.Controls" Namespace="Itenso.WebUserForms.Controls"
- TagPrefix="cc1" %>
- <%@ Control Language="C#" AutoEventWireup="true" %>
- <table width="100%">
- <tr>
- <td width="20%">
- <asp:Label ID="Label1" runat="server" Text="Age:"></asp:Label>
- </td>
- <td>
- <cc1:TextBox ID="TextBox1" runat="server" FieldName="UserAge"></cc1:TextBox>
- <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Please enter value from 10 to 120."
- MaximumValue="120" MinimumValue="10" Type="Integer" ControlToValidate="TextBox1"></asp:RangeValidator>
- </td>
- </tr>
- </table>
- <cc1:UserFormHeader ID="UserFormHeader1" runat="server" Description="Range Validator Control"
- Type="Test" Name="RangeValidatorControlForm" />