private void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e) { PrepareThemeAndModifierOptions(DropDownList1.SelectedValue); RadioButtonList1.ClearSelection(); CheckBoxList1.ClearSelection(); CleanUp(GetMapObj()); }
public static void SetListValue(System.Web.UI.WebControls.CheckBoxList myListControl, object _Value) { int x = 0; myListControl.ClearSelection(); if (myListControl.Items.Count == 1) { myListControl.SelectedIndex = 0; } else { foreach (ListItem _item in myListControl.Items) { if (_Value.ToString().Substring(x, 1) == "1") { _item.Selected = true; } x++; } } }
public void SelectValueCheckBoxList(CheckBoxList checkBoxList, string value) { ListItem item = checkBoxList.Items.FindByValue(value); if (item != null) { checkBoxList.ClearSelection(); item.Selected = true; } }