protected void BanUserByID(object sender, EventArgs e) { try { int userID = int.Parse(UserBanNum.Text); GeneralMethods.BanUser(userID); Response.Redirect("adminPage.aspx", true); } catch { Response.Redirect("adminPage.aspx", true); } }
protected void BanUserByID(object sender, EventArgs e) { try { int userID = int.Parse(UserBanNum.Text); GeneralMethods.BanUser(userID); Response.Redirect("adminPage.aspx", true); } catch { Response.Redirect("adminPage.aspx", true); } }