Resetting the Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am creating a page and I need to add a reset button (like you would with
HTML forms). Is there any way to do this other than resetting individual
controls? Basically I need to page to return to the state after the OnLoad
event
 
Developer,

Just the first thing that came into my mind.

Did you try to call it again with response.redirect(myownurl)

I never tried this by the way

I hope this helps?

Cor
 
Cor said:
Developer,

Just the first thing that came into my mind.

Did you try to call it again with response.redirect(myownurl)

I never tried this by the way

I hope this helps?

Cor

I think he's working on a Windows.Form application.

Why don't you just iterate thru the whole controls collection held by
the form, and, in case its a TextBox etc (all the type of controls you
want to reset) you simply set the text to its original state (empty i
assume).
 
Back
Top