I am trying to have the length og a string be bwteen 4 and 15 characters long. I cannot seem to get this to work. Currently I have: <asp:regularexpressionvalidator ControlToValidate="AccountUsername" Display="Dynamic" ErrorMessage="* Invalid Username" ID="CheckUserName"
runat="server" Text="* Invalid Username" ValidationExpression="^\d{4,15}$" Also, does anyone know of a complete reference for validators? Thanks
That works great unless they leave the form blank and try to submit the form. In that case, the error does not come up. It will only come up if they type something in first and then tab to the next colum in the form. How can you get it so it shows up on no
data as well? Thanks
Shimmer123
Member
60 Points
12 Posts
Length of String for Validation
Aug 04, 2003 08:02 AM|LINK
ramnanda
Participant
1195 Points
239 Posts
Re: Length of String for Validation
Aug 04, 2003 09:14 AM|LINK
<asp:regularexpressionvalidator ControlToValidate="AccountUsername" Display="Dynamic" ErrorMessage="* Invalid Username" ID="CheckUserName" runat="server" Text="* Invalid Username" ValidationExpression=".{4,15}"Regards RamShimmer123
Member
60 Points
12 Posts
Re: Length of String for Validation
Aug 04, 2003 07:27 PM|LINK
Shimmer123
Member
60 Points
12 Posts
Re: Length of String for Validation
Aug 04, 2003 07:29 PM|LINK