Exemple #1
0
 private void BindLink()
 {
     CheckBoxListLink.DataSource     = SPARInsightManagement.Web.Code.Link.GetLinkList();
     CheckBoxListLink.DataTextField  = "Description";
     CheckBoxListLink.DataValueField = "LinkId";
     CheckBoxListLink.DataBind();
 }
        private void BindLink()
        {
            //DropDownListLink.DataSource = SPARInsightManagement.Web.Code.Link.GetLinkList();
            //DropDownListLink.DataTextField = "Description";
            //DropDownListLink.DataValueField = "LinkId";
            //DropDownListLink.DataBind();

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

            CheckBoxListLink.DataSource     = SPARInsightManagement.Web.Code.Link.GetLinkList();
            CheckBoxListLink.DataTextField  = "Description";
            CheckBoxListLink.DataValueField = "LinkId";
            CheckBoxListLink.DataBind();
        }