for (int i = 0; i < DropDownList1.Items.Count; i++) { if (DropDownList1.Items[i].Value== "30") { DropDownList1.SelectedIndex = i; break; } }