|
<%@ 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="Name:"></asp:Label>
</td>
<td>
<cc1:TextBox ID="TextBox1" runat="server" FieldName="UserName"></cc1:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="None"
ControlToValidate="TextBox1" ErrorMessage="Please enter the name."></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label2" runat="server" Text="Age:"></asp:Label>
</td>
<td>
<cc1:TextBox ID="TextBox2" runat="server" FieldName="UserAge"></cc1:TextBox>
<asp:RangeValidator ID="RangeValidator1" runat="server" Display="None" ErrorMessage="Please enter value from 10 to 120.."
MaximumValue="120" MinimumValue="10" Type="Integer" ControlToValidate="TextBox2"></asp:RangeValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="None"
ControlToValidate="TextBox2" ErrorMessage="Please enter the age."></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" />
</td>
</tr>
</table>
<cc1:UserFormHeader ID="UserFormHeader1" runat="server" Description="Validation Summary Control"
Type="Test" Name="ValidationSummaryControlForm" />
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
👨 Senior .NET Software Engineer
🚀 My Open Source Projects
-
Time Period Library 👉
GitHub
-
Payroll Engine 👉
GitHub
Feedback and contributions are welcome.