Q: Form.Reset() ??

Discussion in 'ASP .Net Web Controls' started by Eidolon, Sep 10, 2003.

  1. Eidolon

    Eidolon Guest

    Do ASP.NET webforms provide any intrinsic functionality similar/equivalent
    to the html forms' form.reset() method? I want to put on a cancel button,
    which simply clears all the forms fields back to their "unset" values and
    clears any validation errors. The only way i see of doing this though is to
    make a button with CausesValidation=False, and then in the click event,
    manually go through and reset, rebind, clear all the individual elements
    one-by-one. Is that the best that cancelling gets?
    By the way, i am trying to do this with an < asp:imagebutton > control.

    Thanks in advance,

    - Aaron.
     
    Eidolon, Sep 10, 2003
    #1
    1. Advertising

  2. Eidolon

    Alvin Bruney Guest

    Re: Form.Reset() ??

    Not that i know of. May be wrong there too
    "Eidolon" <> wrote in message
    news:...
    > Do ASP.NET webforms provide any intrinsic functionality similar/equivalent
    > to the html forms' form.reset() method? I want to put on a cancel button,
    > which simply clears all the forms fields back to their "unset" values and
    > clears any validation errors. The only way i see of doing this though is

    to
    > make a button with CausesValidation=False, and then in the click event,
    > manually go through and reset, rebind, clear all the individual elements
    > one-by-one. Is that the best that cancelling gets?
    > By the way, i am trying to do this with an < asp:imagebutton > control.
    >
    > Thanks in advance,
    >
    > - Aaron.
    >
    >
     
    Alvin Bruney, Sep 11, 2003
    #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. Kenneth Keeley

    Form Reset

    Kenneth Keeley, Oct 15, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    1,651
    Rajesh.V
    Oct 20, 2003
  2. Stan Sainte-Rose

    Reset Action Form

    Stan Sainte-Rose, Aug 13, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    2,486
    Stan Sainte-Rose
    Aug 13, 2004
  3. =?Utf-8?B?a2VpdGg=?=

    reset form - from a total newbie

    =?Utf-8?B?a2VpdGg=?=, Nov 2, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    465
    =?Utf-8?B?a2VpdGg=?=
    Nov 3, 2004
  4. =?Utf-8?B?a2R0?=

    reset form - from a total newbie

    =?Utf-8?B?a2R0?=, Nov 2, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    423
    =?Utf-8?B?a2VpdGg=?=
    Nov 2, 2004
  5. Fetty
    Replies:
    4
    Views:
    5,135
    Guest
    Jun 22, 2005
Loading...

Share This Page