Reset all form fields in code behind

  • Thread starter Thread starter Fetty
  • Start date Start date
You can Response.Redirect to the same page to achieve this.
-Souri
 
While true, I rather get an understanding of why the OP wants to do this.
It's possible that what he/she is asking how to do, isn't what he/she wants
to do.

Karl
 
I have a form that is used to add records and edit current ones. I need to
reset the form when I am adding a new record.
 
if what you need is just to reset the form and have it ready for data input,
then I think souri's suggestion if fine. But if you have a message such as
"Record ... added!" to communicate with your user after each adding /
updating, then
all I can think of is to do it manually!
Not sure if this is the best practice.
 

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