Exemplo n.º 1
0
        private void CargarDropDownList()
        {
            EventosClass Evento = new EventosClass();

            EventoDropDownList.DataSource     = Evento.Listado(" * ", "1=1", "");
            EventoDropDownList.DataTextField  = "NombreEvento";
            EventoDropDownList.DataValueField = "EventoId";
            EventoDropDownList.DataBind();
        }
        private void CargarDropDownList()
        {
            UsuariosClass Usuario = new UsuariosClass();

            UsuarioIdDropDownList.DataSource     = Usuario.Listado(" * ", "1=1", "");
            UsuarioIdDropDownList.DataTextField  = "NombreUsuario";
            UsuarioIdDropDownList.DataValueField = "UsuarioId";
            UsuarioIdDropDownList.DataBind();

            EventosClass Evento = new EventosClass();

            EventoDropDownList.DataSource     = Evento.Listado(" * ", "1=1", "");
            EventoDropDownList.DataTextField  = "NombreEvento";
            EventoDropDownList.DataValueField = "EventoId";
            EventoDropDownList.DataBind();

            EventosDetalleClass Ticket = new EventosDetalleClass();

            TicketDropDownList.DataSource     = Ticket.Listado(" * ", "1=1", "");
            TicketDropDownList.DataTextField  = "DescTicket";
            TicketDropDownList.DataValueField = "PrecioTicket";
            TicketDropDownList.DataBind();
        }