private void getAcademicYear(int OrgID) { try { EWA_Login objEWA = new EWA_Login(); BL_Login objBL = new BL_Login(); objEWA.OrgId = Convert.ToString(OrgID); DataSet ds = objBL.BL_GetAcademicYear(objEWA); if (ds.Tables[0].Rows.Count > 0) { CurrentAcademicYearId = ds.Tables[0].Rows[0]["AcademicYearId"].ToString(); CurrentAcademicYear = ds.Tables[0].Rows[0]["AcademicYear"].ToString(); Session["AcademicYearId"] = CurrentAcademicYearId; Session["AcademicYear"] = CurrentAcademicYear; } if (OrgID == 0 && CurrentAcademicYear == "") { // Response.Redirect("~/CMSHome.aspx"); } } catch (Exception exp) { // GeneralErr(exp.Message.ToString()); } }