Exemplo n.º 1
0
 protected void GVHistorico_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     try{
         GVHistorico.PageIndex  = e.NewPageIndex;
         GVHistorico.DataSource = (DataTable)Session["CONSTANCIA_HISTORICO"];
         GVHistorico.DataBind();
     }catch (Exception ex) {
         Mensaje(ex.Message, WarningType.Danger);
     }
 }
Exemplo n.º 2
0
        protected void DDLEstadoConstancia_SelectedIndexChanged(object sender, EventArgs e)
        {
            try{
                if (DDLEstadoConstancia.SelectedValue == "-1")
                {
                    throw new Exception("Favor seleccione el estado de la constancia.");
                }

                String    vQuery = "[RSP_Constancias] 12," + DDLEstadoConstancia.SelectedValue;
                DataTable vDatos = vConexion.obtenerDataTable(vQuery);
                GVHistorico.DataSource = null;

                GVHistorico.DataSource = vDatos;
                GVHistorico.DataBind();
                Session["CONSTANCIA_HISTORICO"] = vDatos;
            }catch (Exception ex) {
            }
        }