Cancel button?

Discussion in 'ASP .Net' started by LL, Oct 31, 2003.

  1. LL

    LL Guest

    Hi,

    I have two buttons within a form, one is "Submit", another one is "Cancel".

    When click "Cancel", on server side, I redirect user to home page. but the
    validation controls fired first. How to disable them?

    Thanks.
     
    LL, Oct 31, 2003
    #1
    1. Advertisements

  2. LL

    Guest Guest

    Set "CausesValidation" property of your button to "false".

    Suresh.

    >-----Original Message-----
    >Hi,
    >
    >I have two buttons within a form, one is "Submit",

    another one is "Cancel".
    >
    >When click "Cancel", on server side, I redirect user to

    home page. but the
    >validation controls fired first. How to disable them?
    >
    >Thanks.
    >
    >
    >.
    >
     
    Guest, Oct 31, 2003
    #2
    1. Advertisements

  3. LL

    ll Guest

    Thanks for the help.

    It works after I set "CausesValidation" property to "false".

    But sometime I still can see the validation resule first before I goto
    another page.

    How to avoid that?




    <> wrote in message
    news:033d01c3a002$1c62ed90$...
    > Set "CausesValidation" property of your button to "false".
    >
    > Suresh.
    >
    > >-----Original Message-----
    > >Hi,
    > >
    > >I have two buttons within a form, one is "Submit",

    > another one is "Cancel".
    > >
    > >When click "Cancel", on server side, I redirect user to

    > home page. but the
    > >validation controls fired first. How to disable them?
    > >
    > >Thanks.
    > >
    > >
    > >.
    > >
     
    ll, Dec 2, 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. moondaddy
    Replies:
    1
    Views:
    665
    Saravana [MVP]
    Apr 3, 2004
  2. Mvk
    Replies:
    4
    Views:
    11,439
    fritskuijk
    Jul 15, 2011
  3. MB
    Replies:
    3
    Views:
    9,258
    =?Utf-8?B?c3Jpbmk=?=
    May 13, 2004
  4. =?Utf-8?B?TmlnZWwgUml2ZXR0?=

    Permission failure on save/cancel button press

    =?Utf-8?B?TmlnZWwgUml2ZXR0?=, Jun 17, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    415
    =?Utf-8?B?TmlnZWwgUml2ZXR0?=
    Jun 17, 2004
  5. Lucas Tam
    Replies:
    1
    Views:
    598
    Lucas Tam
    Jul 30, 2004
  6. Craig G
    Replies:
    2
    Views:
    841
    Patrick Olurotimi Ige
    Dec 14, 2004
  7. Replies:
    2
    Views:
    14,486
    Guest
    May 6, 2005
  8. Indu
    Replies:
    9
    Views:
    540
Loading...