J
Jeff
Hey
asp.net 2.0
Here is some markup i have problem with:
<asp:TableRow>
<asp:TableCell CssClass="fieldname"
Width="120">Password:</asp:TableCell>
<asp:TableCell Width="160"><asp:TextBox ID="Password" runat="server"
TextMode="Password" Width="100%" /></asp:TableCell>
<asp:TableCell HorizontalAlign="Left">
<asp:RequiredFieldValidator ID="valRequiredPassword" runat="server"
ErrorMessage="Password is required" ValidationGroup="CreateUserWizard1"
ControlToValidate="password"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="valPasswordLength" runat="server"
ErrorMessage="Password too short" Display="Dynamic"
ValidationGroup="CreateUserWizard1" ControlToValidate="Password"
ValidationExpression="\w{7,}"></asp:RegularExpressionValidator>
</asp:TableCell>
</asp:TableRow>
The problem is that I always get the error message "Password too short" even
when I typed in at least 13 characters in password. I thought only 7
characters was needed..
What am I doing wrong here?
Jeff
asp.net 2.0
Here is some markup i have problem with:
<asp:TableRow>
<asp:TableCell CssClass="fieldname"
Width="120">Password:</asp:TableCell>
<asp:TableCell Width="160"><asp:TextBox ID="Password" runat="server"
TextMode="Password" Width="100%" /></asp:TableCell>
<asp:TableCell HorizontalAlign="Left">
<asp:RequiredFieldValidator ID="valRequiredPassword" runat="server"
ErrorMessage="Password is required" ValidationGroup="CreateUserWizard1"
ControlToValidate="password"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="valPasswordLength" runat="server"
ErrorMessage="Password too short" Display="Dynamic"
ValidationGroup="CreateUserWizard1" ControlToValidate="Password"
ValidationExpression="\w{7,}"></asp:RegularExpressionValidator>
</asp:TableCell>
</asp:TableRow>
The problem is that I always get the error message "Password too short" even
when I typed in at least 13 characters in password. I thought only 7
characters was needed..
What am I doing wrong here?
Jeff