Required field validators

Discussion in 'ASP .Net' started by Eric Sabine, Nov 19, 2003.

  1. Eric Sabine

    Eric Sabine Guest

    Can I have RequiredFieldValidators only apply conditionally? For example, a
    page has 2 sections, top and bottom. I want the requireFieldValidators on
    the top to only be applicable when I click a button in that area. Likewise,
    I only want those on the bottom to test for data when the user clicks on the
    bottom button.

    Thanks
    Eric
     
    Eric Sabine, Nov 19, 2003
    #1
    1. Advertisements

  2. Hi eric,

    each time you click a botton, you should post the page back to the
    server. In the event handling the Button click you should enable or
    disable the validators.

    Hope this help

    Stefano Mostarda
    Rome Italy

    Eric Sabine wrote:
    > Can I have RequiredFieldValidators only apply conditionally? For example, a
    > page has 2 sections, top and bottom. I want the requireFieldValidators on
    > the top to only be applicable when I click a button in that area. Likewise,
    > I only want those on the bottom to test for data when the user clicks on the
    > bottom button.
    >
    > Thanks
    > Eric
    >
    >
     
    Stefano Mostarda, Nov 19, 2003
    #2
    1. Advertisements

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. Rob H
    Replies:
    4
    Views:
    522
    sandeep
    Jan 7, 2004
  2. Big E

    Required Field Validators

    Big E, Jul 21, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    411
    John Saunders
    Jul 21, 2004
  3. Ratman
    Replies:
    0
    Views:
    873
    Ratman
    Sep 14, 2004
  4. anony

    Required field validators

    anony, Sep 23, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    443
    anony
    Sep 24, 2004
  5. Robin
    Replies:
    1
    Views:
    414
    ajamrozek
    Feb 3, 2005
  6. savvy
    Replies:
    0
    Views:
    400
    savvy
    Jun 15, 2006
  7. Pavani.Budumuru

    Required Field Validators

    Pavani.Budumuru, Sep 18, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    495
    Pavani.Budumuru
    Sep 18, 2007
  8. jr
    Replies:
    3
    Views:
    664
Loading...