Stop client side validation for DataList cancel button

Discussion in 'ASP .Net' started by moondaddy, Apr 3, 2004.

  1. moondaddy

    moondaddy Guest

    I have a datalist that makes use of the edit template. In this template I
    also have client side validation controls for required fields. My problem
    is that when I click on the cancel button it won't do a postback to cancel
    the update when the form's not valid. How can I bypass the validation for
    the cancel button?


    --
     
    moondaddy, Apr 3, 2004
    #1
    1. Advertising

  2. Set CauseValidation property for that button to false.


    --
    Saravana
    Microsoft MVP - ASP.NET
    www.extremeexperts.com



    "moondaddy" <> wrote in message
    news:...
    > I have a datalist that makes use of the edit template. In this template I
    > also have client side validation controls for required fields. My problem
    > is that when I click on the cancel button it won't do a postback to cancel
    > the update when the form's not valid. How can I bypass the validation for
    > the cancel button?
    >
    >
    > --
    >
    >
    >
     
    Saravana [MVP], Apr 3, 2004
    #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. Libs
    Replies:
    0
    Views:
    1,508
  2. Matt
    Replies:
    14
    Views:
    4,114
    Chad Z. Hower aka Kudzu
    Jan 30, 2004
  3. =?Utf-8?B?dmlkeWE=?=
    Replies:
    1
    Views:
    758
    Kevin Spencer
    Jun 2, 2005
  4. Boss302
    Replies:
    0
    Views:
    1,061
    Boss302
    Nov 21, 2006
  5. Bogdan
    Replies:
    2
    Views:
    658
    Bogdan
    Jun 9, 2008
Loading...

Share This Page