Reset/Clear all fields – Textbox/Dropdown/Radionbuttonlist/Listbox etc of a web form in Asp.net

In most of the case after inserting data into database or carrying out any other transactions. in which we have one form that contains bunch of textbox’s, radiobuttonlist, checkboxlist, dropdownlist, checkbox, listbox etc or any other controls in asp.net .now after inserting data, on submit/save click we want to empty/reset/clear all controls in the web form, we actually do like this:

txtid.text =””;
ddid.SelectedIndex = -1;

and so on… and that for each textbox, dropdowns… etc it becomes very tedious and long.. so to make it short we should create a common function to reset all controls in web form…

Wonderful work! This is the type of information that should
be shared around the internet. Shame on the search engines
for not positioning this post higher! Come on over and visit my web site .
Thanks =)