T
tshad
Some of my regular expressions don't seem to work correctly in IE7. I am on
asp.net 1.1.
I have a site that has been up for a while and I started having problems on
machines with IE7. IE5 and IE6 seem to work fine.
In the following - 919-111-2222 as well as (919)111-2222 was giving one of
my clients the error message and IsValidate was set to false.
<asp:RegularExpressionValidator runat="server"
ErrorMessage=" Phone not in standard format"
Display="Dynamic"
ControlToValidate="Phone"
ValidationExpression="^[01]?[- .]?(\([2-9]\d{2}\)|[2-9]\d{2})[-
..]?\d{3}[- .]?\d{4}$" />
In the following, (e-mail address removed) gave him an error.
<asp:RegularExpressionValidator
ControlToValidate="email"
Display="Dynamic"
Text = "<br> Invalid Email Address!"
ValidationExpression="\S+@\S+\.\S{2,3}"
runat="server" />
These worked fin on IE5 and IE6 as well as Mozilla and Firefox.
I am getting the error when leaving the field so I assume it has something
to do with MS' javascript code.
Is this a known problem or do I need to do something to make this work
correctly?
Thanks,
Tom
asp.net 1.1.
I have a site that has been up for a while and I started having problems on
machines with IE7. IE5 and IE6 seem to work fine.
In the following - 919-111-2222 as well as (919)111-2222 was giving one of
my clients the error message and IsValidate was set to false.
<asp:RegularExpressionValidator runat="server"
ErrorMessage=" Phone not in standard format"
Display="Dynamic"
ControlToValidate="Phone"
ValidationExpression="^[01]?[- .]?(\([2-9]\d{2}\)|[2-9]\d{2})[-
..]?\d{3}[- .]?\d{4}$" />
In the following, (e-mail address removed) gave him an error.
<asp:RegularExpressionValidator
ControlToValidate="email"
Display="Dynamic"
Text = "<br> Invalid Email Address!"
ValidationExpression="\S+@\S+\.\S{2,3}"
runat="server" />
These worked fin on IE5 and IE6 as well as Mozilla and Firefox.
I am getting the error when leaving the field so I assume it has something
to do with MS' javascript code.
Is this a known problem or do I need to do something to make this work
correctly?
Thanks,
Tom