Exemple #1
0
        private void CargarTickets()
        {
            EventosDetalleClass Ticket = new EventosDetalleClass();

            TicketDropDownList.DataSource     = Ticket.Listado("PrecioTicket, DescTicket", "EventoId='" + EventoDropDownList.SelectedValue + "'", "");
            TicketDropDownList.DataTextField  = "DescTicket";
            TicketDropDownList.DataValueField = "PrecioTicket";
            TicketDropDownList.DataBind();
        }
Exemple #2
0
        protected void TicketsButton_Click(object sender, EventArgs e)
        {
            string Condicion            = "";
            EventosDetalleClass Tickets = new EventosDetalleClass();

            Condicion = "1=1";
            TicketsGridView.DataSource = Tickets.Listado("EventoId,DescTicket,CantDisponible,PrecioTicket", Condicion, "");
            TicketsGridView.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();
        }