Cannot have multiple items selected in a DropDownList.
The solution is to remember to call ClearSelection() Method before calling FindByValue("strValue") or FindByText("strtext") Method.
dropDownList1.ClearSelection();
dropDownList1.Items.FindByValue("strValue").Selected = true;
No comments:
Post a Comment
Comments