Click here to Skip to main content
15,881,413 members
Articles / Web Development / ASP.NET

Web User Forms for ASP.NET

Rate me:
Please Sign up or sign in to vote.
4.90/5 (52 votes)
18 Sep 2012CPOL12 min read 135.1K   4.5K   187  
User driven runtime dynamic ASP.NET Web Forms
<%@ 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" />

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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Switzerland Switzerland
👨 Senior .NET Software Engineer

🚀 My Open Source Projects
- Time Period Library 👉 GitHub
- Payroll Engine 👉 GitHub

Feedback and contributions are welcome.



Comments and Discussions