public void CargarPresentacion() { List <Presentacion> list = new List <Presentacion>(); WSPresentacion wspresentacion = new WSPresentacion(); list = wspresentacion.ListPresentacion(); this.presentacion.DataSource = list; this.presentacion.DataValueField = "idPresentacion"; this.presentacion.DataTextField = "tipo"; this.presentacion.DataBind(); this.presentacion.Items.Insert(0, new ListItem("-- Seleccione una presentación")); }
public void CargarPresentacion() { List <Presentacion> list = new List <Presentacion>(); // ACCEDIENDO AL WEB SERVICE WSPresentacion wspresentacion = new WSPresentacion(); list = wspresentacion.ListPresentacion(); this.presentacion.DataSource = list; this.presentacion.DataValueField = "idPresentacion"; this.presentacion.DataTextField = "tipo"; this.presentacion.DataBind(); this.presentacion.Items.Insert(0, new ListItem("-- SELECCIONE LA PRESENTACIÓN --")); }