Exemplo n.º 1
0
 private void BindClaimType()
 {
     CheckBoxListClaimType.DataSource     = ClaimType.GetClaimTypeList();
     CheckBoxListClaimType.DataValueField = "ClaimTypeId";
     CheckBoxListClaimType.DataTextField  = "Description";
     CheckBoxListClaimType.DataBind();
 }
 private void BindClaimType()
 {
     DropDownListClaimType.DataSource     = ClaimType.GetClaimTypeList();
     DropDownListClaimType.DataTextField  = "Description";
     DropDownListClaimType.DataValueField = "ClaimTypeId";
     DropDownListClaimType.DataBind();
     DropDownListClaimType.Items.Insert(0, new ListItem("Please select", "0"));
 }
        private void BindClaimType()
        {
            DropDownListClaimType.DataSource     = ClaimType.GetClaimTypeList();
            DropDownListClaimType.DataTextField  = "Description";
            DropDownListClaimType.DataValueField = "ClaimTypeId";
            DropDownListClaimType.DataBind();
            //DropDownListClaimType.Items.Insert(0, new ListItem("Please select", "0"));
            DropDownListClaimType.Items.Insert(0, new ListItem("All", "99"));

            //DropDownListClaimType.Items.Insert(0, new ListItem("All", "99"));
            //DropDownListClaimType.Items.Insert(1, new ListItem("Expired Stock", "0"));
            //DropDownListClaimType.Items.Insert(2, new ListItem("Factory Fault", "1"));
            //DropDownListClaimType.Items.Insert(3, new ListItem("DemoPromo", "2"));
            //DropDownListClaimType.Items.Insert(4, new ListItem("Recall", "3"));
            //DropDownListClaimType.DataBind();
        }