RegularExpressionValidator in Firefox

Discussion in 'ASP .Net Web Controls' started by Brett, Feb 11, 2008.

  1. Brett

    Brett Guest

    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
    lets
    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
    Code."
    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"
    ControlToValidate="txtZipCode2"
    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" />
     
    Brett, Feb 11, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Oleg Ogurok
    Replies:
    1
    Views:
    6,324
    William F. Robertson, Jr.
    Jun 25, 2003
  2. Helixpoint

    RegularExpressionValidator for money??

    Helixpoint, Jun 30, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    2,769
    Helixpoint
    Jul 1, 2003
  3. Salim Afþar

    regularexpressionvalidator numeric control

    Salim Afþar, Aug 4, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    2,575
    Vincent V
    Aug 5, 2003
  4. BH
    Replies:
    0
    Views:
    523
  5. Dave Weeden

    RegularExpressionValidator bug on firefox

    Dave Weeden, Jul 2, 2008, in forum: ASP .Net
    Replies:
    4
    Views:
    525
    Steven Cheng [MSFT]
    Jul 4, 2008
Loading...

Share This Page