Ejemplo n.º 1
0
        private void LlenaDropDown()
        {
            Repositorio <Ropas> repositorio = new Repositorio <Ropas>();

            RopaDropDownList.DataSource           = repositorio.GetList(p => true);
            RopaDropDownList.DataValueField       = "RopaId";
            RopaDropDownList.DataTextField        = "Descripcion";
            RopaDropDownList.AppendDataBoundItems = true;
            RopaDropDownList.DataBind();
        }
Ejemplo n.º 2
0
        private void LlenaCombo()
        {
            Repositorio <Clientes> repositorio = new Repositorio <Clientes>();
            Repositorio <Ropas>    repository  = new Repositorio <Ropas>();



            ClienteDropDownList.DataSource     = repositorio.GetList(t => true);
            ClienteDropDownList.DataValueField = "ClienteId";
            ClienteDropDownList.DataTextField  = "Nombres";
            ClienteDropDownList.DataBind();

            RopaDropDownList.DataSource     = repository.GetList(t => true);
            RopaDropDownList.DataValueField = "RopaId";
            RopaDropDownList.DataTextField  = "Descripcion";
            RopaDropDownList.DataBind();
        }