示例#1
0
        private void FillStatutmatrimonial()
        {
            IEnumerable <StatutMatrimonialDto> data;
            LookupManager lm = new LookupManager();

            data = lm.GetAllStatutMatrimonial();
            DdlStatutMatrimonial.DataSource     = data;
            DdlStatutMatrimonial.DataValueField = "StatutMatrimonialID";
            DdlStatutMatrimonial.DataTextField  = "Nom";
            DdlStatutMatrimonial.DataBind();
            DdlStatutMatrimonial.Items.Insert(0, new ListItem("< Choisir un statut >", "0"));
        }