ParentFormControl.ascx
上传用户:husern
上传日期:2022-03-24
资源大小:534k
文件大小:1k
- <%@ Register Src="ChildFormControl.ascx" TagName="ChildFormControl" TagPrefix="uc1" %>
- <%@ Register Assembly="Itenso.WebUserForms.Controls" Namespace="Itenso.WebUserForms.Controls"
- TagPrefix="cc1" %>
- <%@ Control Language="C#" AutoEventWireup="true" %>
- <table width="100%" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="2">
- <uc1:ChildFormControl ID="ChildFormControl2" runat="server" />
- </td>
- </tr>
- <tr>
- <td width="20%">
- <asp:Label ID="Label1" runat="server" Text="Age (Parent):"></asp:Label>
- </td>
- <td>
- <cc1:TextBox ID="TextBox1" runat="server" FieldName="UserAge"></cc1:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="None"
- ControlToValidate="TextBox1" ErrorMessage="Please enter the age."></asp:RequiredFieldValidator>
- <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Please enter value from 10 to 120."
- Display="None" MaximumValue="120" MinimumValue="10" Type="Integer" ControlToValidate="TextBox1"></asp:RangeValidator>
- </td>
- </tr>
- <tr>
- <td>
- </td>
- <td>
- <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
- </td>
- </tr>
- </table>
- <cc1:UserFormHeader ID="UserFormHeader1" runat="server" Description="Parent Form"
- Type="Test" Name="ParentForm" />