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. Advertising

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

    Required Field Validators

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

    Required field validators

    anony, Sep 23, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    374
    anony
    Sep 24, 2004
  5. jr
    Replies:
    3
    Views:
    408
Loading...

Share This Page