Esempio n. 1
0
 private void BindOption()
 {
     CheckBoxListOption.DataSource     = SPARInsightManagement.Web.Code.Option.GetOptionList();
     CheckBoxListOption.DataTextField  = "Description";
     CheckBoxListOption.DataValueField = "OptionId";
     CheckBoxListOption.DataBind();
 }
        private void BindOption()
        {
            //DropDownListOption.DataSource = SPARInsightManagement.Web.Code.Option.GetOptionList();
            //DropDownListOption.DataTextField = "Description";
            //DropDownListOption.DataValueField = "OptionId";
            //DropDownListOption.DataBind();

            //if (DropDownListOption.Items.Count > 1)
            //{
            //    DropDownListOption.Items.Insert(0, new ListItem("Please select", "0"));
            //}

            CheckBoxListOption.DataSource     = SPARInsightManagement.Web.Code.Option.GetOptionList();
            CheckBoxListOption.DataTextField  = "Description";
            CheckBoxListOption.DataValueField = "OptionId";
            CheckBoxListOption.DataBind();
        }