title: Need Validation for length of name field
body: <p>I am creating my first ASP.Net Webforms application.  I need to create a form that has a name field that needs to be 3 to 50 characters long.  <code>RangeValidation</code> seems insufficient as it only tests the numeric value.</p>
  
  <p>Here is what it looks like so far:</p>
  
  <pre><code>&lt;li&gt;
      &lt;asp:Label runat="server" AssociatedControlID="UserName"&gt;User name&lt;/asp:Label&gt;
      &lt;asp:TextBox runat="server" ID="UserName" /&gt;
      &lt;asp:RequiredFieldValidator runat="server" ControlToValidate="UserName"
          CssClass="field-validation-error" ErrorMessage="The user name field is required." /&gt;
  &lt;/li&gt;
  </code></pre>