E
Eidolon
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.
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.