Пример #1
0
        protected void FillDropDown()
        {
            ddlcontacttype.Items.Clear();
            iContactPersonInfoClient ObjContactPerson = new iContactPersonInfoClient();
            CustomProfile            profile          = CustomProfile.GetProfile();

            ddlcontacttype.DataSource = ObjContactPerson.GetContactTypeList(profile.DBConnection._constr);
            ddlcontacttype.DataBind();
            ListItem lst = new ListItem {
                Text = "-Select-", Value = "0"
            };

            ddlcontacttype.Items.Insert(0, lst);
        }