RegularExpressionValidator in Firefox



I have a RegularExpressionValidator thats acts quirky in Firefox 2. It works
fine in IE6, Safari and IE7.
- The REQUIREDFieldValidator works fine, but
- The RegularExpressionValidator seems to accept pretty much any entry and
you move on, valid or not, but still displays the popup error message
even for
valid entries.
I tried disabling Client-Side validation, but didn't help.
Any ideas? Thanks

<asp:RequiredFieldValidator CssClass="RedMsg" id="rfdZipCode2" runat="server"
ControlToValidate="txtZipCode2" ErrorMessage="You must enter a ZIP
Style="left: 140px; position: absolute; top: 180px; z-index: 102;"
Width="100px" SetFocusOnError="True" ValidationGroup="ZipCode2">*
required entry</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="revZipCode2" runat="server"
ErrorMessage="Invalid ZIP Code format. Please enter only 5 digits for
US zip codes"
Style="left: 140px; position: absolute; top: 180px; z-index: 103;"
ValidationGroup="ZipCode2" ValidationExpression="(\d{5})|(.\d.\s\d.\d)"
Width="100px">! invalid format</asp:RegularExpressionValidator>
<asp:ValidationSummary ID="sumZipCode2" runat="server"
ShowMessageBox="True" Height="40px"
ShowSummary="False" ValidationGroup="ZipCode2"
style="left: 20px; position: absolute; top: 180px;" Width="150px" />


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question