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

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

  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. 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. Vidar Petursson

    Re: Can I have a Cancel button?

    Vidar Petursson, Jul 15, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    394
    Vidar Petursson
    Jul 15, 2003
  2. moondaddy
    Replies:
    1
    Views:
    575
    Saravana [MVP]
    Apr 3, 2004
  3. Mvk
    Replies:
    4
    Views:
    10,922
    fritskuijk
    Jul 15, 2011
  4. MB
    Replies:
    3
    Views:
    8,751
    =?Utf-8?B?c3Jpbmk=?=
    May 13, 2004
  5. Indu
    Replies:
    9
    Views:
    351
Loading...

Share This Page