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

编辑器/阅读器

开发平台:

C#

  1. <%@ Register Src="ChildUserForm.ascx" TagName="ChildUserForm" TagPrefix="uc1" %>
  2. <%@ Register Assembly="Itenso.WebUserForms.Controls" Namespace="Itenso.WebUserForms.Controls"
  3.   TagPrefix="cc1" %>
  4. <%@ Control Language="C#" AutoEventWireup="true" %>
  5. <table width="100%" cellpadding="0" cellspacing="0">
  6.   <tr>
  7.     <td colspan="2">
  8.       <uc1:ChildUserForm ID="ChildUserForm1" runat="server" />
  9.     </td>
  10.   </tr>
  11.   <tr>
  12.     <td width="20%">
  13.       <asp:Label ID="Label1" runat="server" Text="Age (Parent):"></asp:Label>
  14.     </td>
  15.     <td>
  16.       <cc1:TextBox ID="TextBox1" runat="server" FieldName="UserAge"></cc1:TextBox>
  17.       <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="None"
  18.         ControlToValidate="TextBox1" ErrorMessage="Please enter the age."></asp:RequiredFieldValidator>
  19.       <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Please enter value from 10 to 120."
  20.         Display="None" MaximumValue="120" MinimumValue="10" Type="Integer" ControlToValidate="TextBox1"></asp:RangeValidator>
  21.     </td>
  22.   </tr>
  23.   <tr>
  24.     <td>
  25.     </td>
  26.     <td>
  27.       <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
  28.     </td>
  29.   </tr>
  30. </table>
  31. <cc1:UserFormHeader ID="UserFormHeader1" runat="server" Type="RuntimeDemo" Name="ParentUserForm" />