Wednesday 23 April 2014

How to clear the dropdownlist in asp.net ?


 If you want to clear the items then

      Dropdown1.Items.Clear();

       If you want to set the DropDown index to 0 then

      Dropdown1.SelectedIndex = 0;

No comments:

Post a Comment