Click here to Skip to main content
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Alternatives
 

Tagged as

Go to top

Simple and easy way to clear all the input fields in the form.

, 26 Feb 2010
This is an easy way to clear all input fields in the form.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

26 Feb 2010
Sandeep Mewara
ALTERNATIVE #2: via JavaScript function ClearAllControls() { for (i=0; i<document.forms[0].length; i++) { doc = document.forms[0].elements[i]; ...
26 Feb 2010
Indrajeet Sutar
2 alternatives  
There are occasions where we have lots of input fields on our webpage. And after submitting the form we are required to reset the form (clear all the fields). As i have already used gridview and i got all the controls from every gridview row using foreach loop by using grvrow.findcontrols(),...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Sandeep Mewara
Software Developer (Senior)
India India
Current location: Bangalore, India.
Follow on   Twitter

| | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 27 Feb 2010
Article Copyright 2010 by Sandeep Mewara
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid