validation controls...useless when form has multiple buttons?

Discussion in 'ASP .Net' started by D, Oct 16, 2003.

  1. D

    D Guest

    Most of my web forms have multiple buttons (Proceed, Back, link buttons for
    various screens, etc.)

    It looks like, say a required field validator for example, gives me an error
    message no matter which button is pushed. Well, the user simply wants to
    navigate to a different screen without filling out the form.

    So is there a way to tie validation controls to specific buttons?
     
    D, Oct 16, 2003
    #1
    1. Advertisements

  2. D

    Rajesh.V Guest

    Turn off the CausesValidation =false for the buttons which u don want the
    validation to occur.

    "D" <> wrote in message
    news:nIsjb.18718$...
    > Most of my web forms have multiple buttons (Proceed, Back, link buttons

    for
    > various screens, etc.)
    >
    > It looks like, say a required field validator for example, gives me an

    error
    > message no matter which button is pushed. Well, the user simply wants to
    > navigate to a different screen without filling out the form.
    >
    > So is there a way to tie validation controls to specific buttons?
    >
    >
     
    Rajesh.V, Oct 16, 2003
    #2
    1. Advertisements

  3. D

    Teemu Keiski Guest

    See:
    http://msdn.microsoft.com/msdnmag/issues/02/04/Valid/default.aspx
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspplusvalid.asp

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist

    "D" <> wrote in message
    news:nIsjb.18718$...
    > Most of my web forms have multiple buttons (Proceed, Back, link buttons

    for
    > various screens, etc.)
    >
    > It looks like, say a required field validator for example, gives me an

    error
    > message no matter which button is pushed. Well, the user simply wants to
    > navigate to a different screen without filling out the form.
    >
    > So is there a way to tie validation controls to specific buttons?
    >
    >
     
    Teemu Keiski, Oct 16, 2003
    #3
    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. =?Utf-8?B?ZGh1cndpdHo=?=
    Replies:
    1
    Views:
    641
    Teemu Keiski
    Apr 10, 2004
  2. Matt
    Replies:
    0
    Views:
    814
  3. Daniel Nogradi
    Replies:
    0
    Views:
    523
    Daniel Nogradi
    Nov 15, 2006
  4. Nathan Sokalski
    Replies:
    0
    Views:
    346
    Nathan Sokalski
    Jul 24, 2008
  5. Nathan Sokalski

    Multiple ValidationGroups with Buttons and Validation Controls

    Nathan Sokalski, Jul 24, 2008, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    164
    Nathan Sokalski
    Jul 24, 2008
  6. Matt
    Replies:
    2
    Views:
    289
    Bob Barrows [MVP]
    Jun 27, 2004
  7. sandyde2
    Replies:
    2
    Views:
    323
    sandyde2
    Oct 2, 2003
  8. Aaron C

    Form validation w/ multiple buttons

    Aaron C, Dec 4, 2004, in forum: Javascript
    Replies:
    1
    Views:
    184
    McKirahan
    Dec 4, 2004
Loading...