J
Jon Natwick
I am using the following script to validate e-mail address format. The
problem I'm having however is that if I enter a long invalid string, like
"123456789012345678901234567890", CPU process for this process goes to
maximum and IE does not respond.
I am doing something wrong or is this a bug? Is there a way I could prevent
this behavior?
<asp:regularexpressionvalidator id="vld1EmailName" runat="server"
ControlToValidate="tbEmailName"
ValidationExpression="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$"
Display="Dynamic" CssClass="ValidationMessage">E-mail format is not
valid<br></asp:regularexpressionvalidator>
problem I'm having however is that if I enter a long invalid string, like
"123456789012345678901234567890", CPU process for this process goes to
maximum and IE does not respond.
I am doing something wrong or is this a bug? Is there a way I could prevent
this behavior?
<asp:regularexpressionvalidator id="vld1EmailName" runat="server"
ControlToValidate="tbEmailName"
ValidationExpression="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$"
Display="Dynamic" CssClass="ValidationMessage">E-mail format is not
valid<br></asp:regularexpressionvalidator>