Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Q: Form.Reset() ??

Reply
Thread Tools

Q: Form.Reset() ??

 
 
Eidolon
Guest
Posts: n/a
 
      09-10-2003
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.


 
Reply With Quote
 
 
 
 
Alvin Bruney
Guest
Posts: n/a
 
      09-11-2003
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.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments