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

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

  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. 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?ZGh1cndpdHo=?=
    Replies:
    1
    Views:
    437
    Teemu Keiski
    Apr 10, 2004
  2. Daniel Nogradi
    Replies:
    0
    Views:
    371
    Daniel Nogradi
    Nov 15, 2006
  3. Nathan Sokalski
    Replies:
    0
    Views:
    272
    Nathan Sokalski
    Jul 24, 2008
  4. Nathan Sokalski

    Multiple ValidationGroups with Buttons and Validation Controls

    Nathan Sokalski, Jul 24, 2008, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    104
    Nathan Sokalski
    Jul 24, 2008
  5. sandyde2
    Replies:
    2
    Views:
    168
    sandyde2
    Oct 2, 2003
Loading...

Share This Page