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).
 

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

Back
Top