protected void Page_Load(object sender, EventArgs e) { string mode = Request.QueryString["mode"]; string email = Request.QueryString["user"]; users = QueryClass.GetUsers(); orders = QueryClass.GetOrders(); if (mode != null) { //Suspend a user if (mode.Equals("toggleSuspend") && !((User)Session["user"]).Email.Equals(email)) { QueryClass.ToggleSuspendUser(email); users = QueryClass.GetUsers(); } //Delete a user if (mode.Equals("delete") && !((User)Session["user"]).Email.Equals(email)) { QueryClass.ToggleDeleteUser(email); users = QueryClass.GetUsers(); } } }