Search This Blog

Friday, November 20, 2015

How to Set DropDownList zero index with custom value programatically

dropdownId.Items.Insert(0, "--Select--");
dropdownId.SelectedIndex = dropdownId.Items.IndexOf(dropdownId.Items.FindByText("--Select--"));

No comments:

Post a Comment