protected void GetExpiryNotification() { try { obj_BAL_Student_Dashboard = new Student_DashBoard_BLogic(); obj_Student_Dashboard = new StudentDash(); if (Session["UserPackage"] == "Single") { obj_Student_Dashboard.StudentID = AppSessions.StudentID; obj_Student_Dashboard.Mode = "Single"; DataSet ds = new DataSet(); ds = obj_BAL_Student_Dashboard.BAL_Student_ExpiryNotification(obj_Student_Dashboard); if (ds.Tables[0].Rows.Count > 0 && ds != null) { fsExpiryNotification.Visible = true; gvSubjectExpiryNotification.Visible = true; gvSubjectExpiryNotification.DataSource = ds.Tables[0]; gvSubjectExpiryNotification.DataBind(); } } if (Session["UserPackage"] == "Combo") { obj_Student_Dashboard.StudentID = AppSessions.StudentID; obj_Student_Dashboard.Mode = "Combo"; DataSet ds = new DataSet(); ds = obj_BAL_Student_Dashboard.BAL_Student_ExpiryNotification(obj_Student_Dashboard); if (ds.Tables[0].Rows.Count > 0 && ds != null) { fsExpiryNotification.Visible = true; gvComboExpiryNotification.Visible = true; gvComboExpiryNotification.DataSource = ds.Tables[0]; gvComboExpiryNotification.DataBind(); } } } catch (Exception ex) { WebMsg.Show(ex.Message); } }