Skip to main content

Cannot select multiple items in Dropdownlist error in ASP.NET during findbytext use

In this Use the following code:

   ddlLearningCentre.SelectedIndex = -1; // use this before to correct this error
   ddlLearningCentre.Items.FindByText(vdt.Rows[0]["enquirylccode"].ToString()).Selected = true;

Done

Comments