IsValid always returns true on server-side under FireFox 0.9

Discussion in 'ASP .Net' started by Jeremy, Jul 1, 2004.

  1. Jeremy

    Jeremy Guest

    The code is in a server control:

    If Me.Page.IsValid Then
    ExecuteSomething
    End If

    ExecuteSomething is always called and the validators always return True for
    IsValid, even though their properties would indicate that they are invalid
    (RequiredField validator, InitialValue = "", CurrentValue = "", IsValid =
    True). Any idea why this is happening? It's driving me crazy...

    Thanks,
    Jeremy
    Jeremy, Jul 1, 2004
    #1
    1. Advertising

  2. Jeremy,

    As per the documentation for the IsValid property, call the Page.Validate
    method before using the property.

    HTH,
    Nicole


    "Jeremy" <> wrote in message
    news:ScVEc.8939$...
    > The code is in a server control:
    >
    > If Me.Page.IsValid Then
    > ExecuteSomething
    > End If
    >
    > ExecuteSomething is always called and the validators always return True
    > for
    > IsValid, even though their properties would indicate that they are invalid
    > (RequiredField validator, InitialValue = "", CurrentValue = "", IsValid =
    > True). Any idea why this is happening? It's driving me crazy...
    >
    > Thanks,
    > Jeremy
    >
    >
    Nicole Calinoiu, Jul 1, 2004
    #2
    1. Advertising

  3. Jeremy

    Jeremy Guest

    > As per the documentation for the IsValid property, call the Page.Validate
    > method before using the property.


    *doh*

    Thanks!
    Jeremy, Jul 1, 2004
    #3
    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. Jon Davis
    Replies:
    1
    Views:
    397
    Jon Davis
    Jan 27, 2004
  2. Jon Davis
    Replies:
    3
    Views:
    474
    Jon Davis
    Jan 27, 2004
  3. Pierre Quentel

    "0 in [True,False]" returns True

    Pierre Quentel, Dec 12, 2005, in forum: Python
    Replies:
    59
    Views:
    1,028
    Grant Edwards
    Dec 16, 2005
  4. bdb112
    Replies:
    45
    Views:
    1,334
    jazbees
    Apr 29, 2009
  5. Larry Lawhead

    RegularExpressionValidator.IsValid Returns TRUE!?

    Larry Lawhead, Dec 1, 2003, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    1,652
    Larry Lawhead
    Dec 1, 2003
Loading...

Share This Page