Q: Form.Reset() ??

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top