protected void Page_Load(object sender, EventArgs e) { string action = Request["action"]; if (action == "updatenewreports") { ReportDAO.UpdateReportsWordcount(true); } if (action == "updateallreports") { ReportDAO.UpdateReportsWordcount(false); } Response.Redirect("~/UserList"); }