0

Hi all..i need some help please..i'm doing a validation using a validation expression..this is use to make a user just input the digit in 5 digit..
i'm using this now but not function

<tr>
        <td class="style1">Zip Code </td>
        <td>:</td>
        <td>
            <asp:TextBox ID="txtCmpZip" runat="server" BorderStyle="Groove" MaxLength="5"></asp:TextBox><asp:RequiredFieldValidator ID="CmpZip" runat="server" ErrorMessage="*" ControlToValidate="txtCmpZip"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ErrorMessage="Zip code must be 5 numeric digits" ValidationExpression="\d{5}" EnableClientScript="False" runat="server" ControlToValidate="txtCmpZip"></asp:RegularExpressionValidator>
        </td>
    </tr>

Edited by new SE: n/a

3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by samkaraja
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.