Apply a single validator to multiple controls?

Discussion in 'ASP .Net' started by MattB, Feb 27, 2006.

  1. MattB

    MattB Guest

    Is there any way I could take a standard validator, like the
    RequiredFieldValidator and make one validator check three text fields,
    making it fire if any one is blank?
    I know how I could do this with a CustomValidator and server-side code,
    but my javascript is probably not good enough to write the client-side
    from scratch and that's where I need this logic to work.
    If not, does anyone have any good examples of the client side javascript
    to do this with with a custom validator?
    Thanks!

    Matt
    MattB, Feb 27, 2006
    #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. =?Utf-8?B?RHVuZQ==?=

    validator controls and disabled controls

    =?Utf-8?B?RHVuZQ==?=, Feb 4, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    694
    Peter Blum
    Feb 4, 2004
  2. Sam  Collett
    Replies:
    1
    Views:
    8,360
    Anders NorĂ¥s [MCAD]
    Nov 26, 2004
  3. Stefan Siegl
    Replies:
    1
    Views:
    948
    Marrow
    Jul 18, 2003
  4. Sally
    Replies:
    2
    Views:
    194
    Sally
    Oct 19, 2005
  5. ela
    Replies:
    12
    Views:
    332
    Uri Guttman
    Apr 6, 2009
Loading...

Share This Page