RangeValidatorControl.ascx
上传用户:husern
上传日期:2022-03-24
资源大小:534k
文件大小:1k
源码类别:

编辑器/阅读器

开发平台:

C#

  1. <%@ Register Assembly="Itenso.WebUserForms.Controls" Namespace="Itenso.WebUserForms.Controls"
  2.   TagPrefix="cc1" %>
  3. <%@ Control Language="C#" AutoEventWireup="true" %>
  4. <table width="100%">
  5.   <tr>
  6.     <td width="20%">
  7.       <asp:Label ID="Label1" runat="server" Text="Age:"></asp:Label>
  8.     </td>
  9.     <td>
  10.       <cc1:TextBox ID="TextBox1" runat="server" FieldName="UserAge"></cc1:TextBox>
  11.       <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Please enter value from 10 to 120."
  12.         MaximumValue="120" MinimumValue="10" Type="Integer" ControlToValidate="TextBox1"></asp:RangeValidator>
  13.     </td>
  14.   </tr>
  15. </table>
  16. <cc1:UserFormHeader ID="UserFormHeader1" runat="server" Description="Range Validator Control"
  17.   Type="Test" Name="RangeValidatorControlForm" />