예제 #1
0
        private void CargarCrif()
        {
            try
            {
                lfecha.Text = DateTime.Now.ToShortDateString();

                if (HttpContext.Current.Session["dtcrif"] != null)
                {
                    GrvCrif.DataSource = HttpContext.Current.Session["dtcrif"];
                    GrvCrif.DataBind();
                }
                else
                {
                    GrvCrif.DataSource = HttpContext.Current.Session["dtcrif"];
                    GrvCrif.DataBind();
                }
            }
            catch (Exception exception)
            {
                throw new Exception(exception.Message);
            }
        }
예제 #2
0
 protected void GrvNotificaciones_PageIndexChanging(object sender, System.Web.UI.WebControls.GridViewPageEventArgs e)
 {
     GrvCrif.PageIndex  = e.NewPageIndex;
     GrvCrif.DataSource = HttpContext.Current.Session["dtcrif"];
     GrvCrif.DataBind();
 }