Validation when there are two submit buttons

Discussion in 'ASP .Net Web Controls' started by Milton, Jan 18, 2005.

  1. Milton

    Milton Guest

    I am using ASP.Net validator controls for my form validation. In my page
    there are two buttons - "Save" and "Cancel". Both the buttons sumbit the form
    to server but do different task. I want validation will work when user will
    click on the "Save" button only. But now validatoin works when user click on
    any of the buttons. Is there any way, I can mention that validation will work
    when user will click on the "Save" button only?
    Milton, Jan 18, 2005
    #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. sree
    Replies:
    2
    Views:
    3,787
    Tim Slattery
    Apr 28, 2004
  2. Fernie
    Replies:
    9
    Views:
    993
    David Dorward
    Dec 5, 2004
  3. Replies:
    4
    Views:
    902
  4. Mike P

    Two submit buttons within one <form>

    Mike P, Aug 14, 2008, in forum: ASP General
    Replies:
    2
    Views:
    153
    Evertjan.
    Aug 14, 2008
  5. sandyde2
    Replies:
    2
    Views:
    180
    sandyde2
    Oct 2, 2003
Loading...

Share This Page