Exemple #1
0
        protected void Consultar()
        {
            DominioBLL d = new DominioBLL();

            List <Responsavel> listaResp = d.BuscarTodosResp();

            gridConsultaResp.DataSource = listaResp;
            gridConsultaResp.DataBind();
        }
Exemple #2
0
        protected void DropDownResponsavel()
        {
            DominioBLL d = new DominioBLL();

            List <Responsavel> lista = d.BuscarTodosResp();

            ddlResponsavel.DataSource     = lista;
            ddlResponsavel.DataValueField = "IdResponsavel";
            ddlResponsavel.DataTextField  = "Nome";
            ddlResponsavel.DataBind();

            ddlResponsavel.Items.Insert(0, new ListItem("- Escolha Responsável -", ""));
        }