protected void Page_Load(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(Convert.ToString(Session["UserId"])))
     {
         var    appUrl = VirtualPathUtility.ToAbsolute("~/");
         string path   = HttpContext.Current.Request.Url.AbsolutePath.Remove(0, appUrl.Length - 1);
         //if (CommonFunctions.CheckUserAuthentication(Convert.ToInt32(Session["UserId"]), path))
         //{
         if (!Page.IsPostBack)
         {
             try
             {
                 if (Convert.ToString(Session["Role"]) == "Admin" || Convert.ToString(Session["Role"]) == "AdminDept" || Convert.ToString(Session["Role"]) == "Examination")
                 {
                     ddl_reportList.DataSource     = P.Bind_ExcelReportLIst("Admin");
                     ddl_reportList.DataTextField  = "Report_Name";
                     ddl_reportList.DataValueField = "Sp_Query";
                     ddl_reportList.DataBind();
                 }
                 else
                 {
                     ddl_reportList.DataSource     = P.Bind_ExcelReportLIst("Faculty");
                     ddl_reportList.DataTextField  = "Report_Name";
                     ddl_reportList.DataValueField = "Sp_Query";
                     ddl_reportList.DataBind();
                 }
             }
             catch (Exception Ex)
             {
             }
         }
         //}
         //else
         //{
         //    Response.Redirect("../Pages/Login.aspx", false);
         //}
     }
     else
     {
         Response.Redirect("../Pages/Login.aspx", false);
     }
 }