Clientside Validation and Page.IsValid

Discussion in 'ASP .Net' started by Paul, May 24, 2005.

  1. Paul

    Paul Guest

    Hi Guys and Girls

    I am trying to disable the clientside validation (Required Fields) by
    using the ValidatorEnable(id,false), which works find from the point of
    view that the client side script is disabled.

    The problem that I am having is that Page.IsValid is still returning
    false even though I have disable the validator.

    I have a column call Notes where there is a validator, this validator
    is only be active if a certian checkbox is ticked, otherwise it should
    not be validated.

    Please help.

    Many thanks
    Paul Phillips
    MXL.COM
     
    Paul, May 24, 2005
    #1
    1. Advertising

  2. Paul

    Scott Allen Guest

    Hi Paul:

    ASP.NET validators validate on the client and the server, so you need
    to totally disable the validator on both ends. Try setting the Enabled
    property to false when you do not want the validator active.

    --
    Scott
    http://www.OdeToCode.com/blogs/scott/

    On 24 May 2005 15:06:46 -0700, "Paul" <> wrote:

    >Hi Guys and Girls
    >
    >I am trying to disable the clientside validation (Required Fields) by
    >using the ValidatorEnable(id,false), which works find from the point of
    >view that the client side script is disabled.
    >
    >The problem that I am having is that Page.IsValid is still returning
    >false even though I have disable the validator.
    >
    >I have a column call Notes where there is a validator, this validator
    >is only be active if a certian checkbox is ticked, otherwise it should
    >not be validated.
    >
    >Please help.
    >
    >Many thanks
    >Paul Phillips
    >MXL.COM
     
    Scott Allen, May 25, 2005
    #2
    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. Mark
    Replies:
    1
    Views:
    558
  2. Mike Chen
    Replies:
    6
    Views:
    538
    Mike Chen
    Jan 29, 2007
  3. Gary Larimer

    Page life cycle and Page.IsValid property

    Gary Larimer, Jul 30, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    415
    Gary Larimer
    Aug 1, 2008
  4. Ken

    usercontrol and clientside validation

    Ken, Jan 9, 2004, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    135
  5. Roger Kjærnsrød

    Clientside validation with .NET Validator classes and Opera

    Roger Kjærnsrød, Apr 30, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    139
    Roger Kjærnsrød
    May 1, 2004
Loading...

Share This Page