示例#1
0
 private void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e)
 {
     PrepareThemeAndModifierOptions(DropDownList1.SelectedValue);
     RadioButtonList1.ClearSelection();
     CheckBoxList1.ClearSelection();
     CleanUp(GetMapObj());
 }
示例#2
0
        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++;
                }
            }
        }
示例#3
0
        public void SelectValueCheckBoxList(CheckBoxList checkBoxList, string value)
        {
            ListItem item = checkBoxList.Items.FindByValue(value);

            if (item != null)
            {
                checkBoxList.ClearSelection();
                item.Selected = true;
            }
        }