I got a button named "Reset" on my form.If it is clicked then all values on the page should be cleared and page should be reloaded i mean that if the button is clicked i got a dropdownlist which should be populated as in the page_load event...
pls clarify...
Mallik Raghu A
Manju ReddyPosted Jan 30, 2008, 3:41 PM
You can reset text boxes just by doing TextBox1.Text = string.empty;
For drop down list, you need to set DropDownList1.DataSource = null and then assign the source again and bind the data. Or if you don't want to re-load because of view state, you can set DropDownList1.SelectedIndex = 0, this will point to first item in the list.
-Manny
www.HelpUnzipped.com