Ejemplo n.º 1
0
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        DataTable datos = new DataTable();
        LCita     lCita = new LCita();

        datos = lCita.obtener_disp_tipo(int.Parse((Session["id_cita"].ToString())));
        GridView1.DataSource = datos;
        GridView1.DataBind();
    }
Ejemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        MaintainScrollPositionOnPostBack = true;
        Response.Cache.SetNoStore();
        DataTable datos = new DataTable();
        LCita     lCita = new LCita();

        datos = lCita.obtener_disp_tipo(int.Parse((Session["id_cita"].ToString())));
        GridView1.DataSource = datos;
        GridView1.DataBind();
    }