CustomValidator doesn't validate on a textbox that is empty

Discussion in 'ASP .Net' started by Ned, Feb 9, 2004.

  1. Ned

    Ned Guest

    I am trying to use a CustomValidator on a textbox. The Validator uses
    a client-side funtion but it doesn't run if the textbox is empty. If
    there is data in the text box it runs fine. Any suggestions
    appreciated. Thanks!
     
    Ned, Feb 9, 2004
    #1
    1. Advertising

  2. Ned

    Curt_C [MVP] Guest

    Required Field Validator?

    Also, are you saying it doesn't run or it passes validation?

    --
    Curt Christianson
    Owner/Lead Developer, DF-Software
    www.Darkfalz.com


    "Ned" <> wrote in message
    news:...
    > I am trying to use a CustomValidator on a textbox. The Validator uses
    > a client-side funtion but it doesn't run if the textbox is empty. If
    > there is data in the text box it runs fine. Any suggestions
    > appreciated. Thanks!
     
    Curt_C [MVP], Feb 9, 2004
    #2
    1. Advertising

  3. Ned

    Jerry Guest

    If you wish to validate the fact that it is empty you need to use a required
    field validator.

    Regards

    "Ned" <> wrote in message
    news:...
    > I am trying to use a CustomValidator on a textbox. The Validator uses
    > a client-side funtion but it doesn't run if the textbox is empty. If
    > there is data in the text box it runs fine. Any suggestions
    > appreciated. Thanks!
     
    Jerry, Feb 9, 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. Morgan

    Re: customValidator doesn't work

    Morgan, Dec 9, 2003, in forum: ASP .Net
    Replies:
    7
    Views:
    2,492
    Eitan
    Dec 16, 2003
  2. Steve Murphy

    CustomValidator Doesn't Run on FireFox

    Steve Murphy, Aug 2, 2005, in forum: ASP .Net
    Replies:
    7
    Views:
    4,099
    Peter Blum
    Aug 3, 2005
  3. Eric Layman
    Replies:
    4
    Views:
    716
    =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=
    Mar 28, 2007
  4. cashdeskmac

    CustomValidator won't validate

    cashdeskmac, Nov 20, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    290
    cashdeskmac
    Nov 20, 2007
  5. EmJayEm
    Replies:
    2
    Views:
    1,271
    EmJayEm
    Dec 31, 2004
Loading...

Share This Page