protected void Page_Load(object sender, EventArgs e)
        {
            this.Response.Cache.SetCacheability(HttpCacheability.NoCache);
            this.Response.ContentType = "application/json";

            curAdmin = AdminUtils.GetEmployeeFromSessionOrLogOut();
            if (curAdmin == null)
            {
                RespondWithError();
            }
            else
            {
                GetResponse();
            }
        }
 protected void Page_PreInit(object sender, EventArgs e)
 {
     curAdmin = AdminUtils.GetEmployeeFromSessionOrLogOut();
 }
 private void GetAdmin()
 {
     curAdmin = AdminUtils.GetEmployeeFromSessionOrLogOut();
 }
Exemple #4
0
 protected void Page_PreInit(object sender, EventArgs e)
 {
     // get logged on Admin (aka Employee)
     curAdmin = AdminUtils.GetEmployeeFromSessionOrLogOut();
 }