Click here to Skip to main content
13,300,625 members (53,731 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Alternatives
Add your own
alternative version

Tagged as


3 bookmarked
Posted 26 Feb 2010

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.


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


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


About the Author

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

| | Privacy | Terms of Use | Mobile
Web04 | 2.8.171207.1 | Last Updated 27 Feb 2010
Article Copyright 2010 by Sandeep Mewara
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid