public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; int id; if (int.TryParse(context.Request.QueryString["id"], out id)) { ManagerInfoBLL miBLL = new ManagerInfoBLL(); if (miBLL.DeleteManagerInfo(id)) { context.Response.Redirect("ManagerInfoList.ashx"); } else { context.Response.Redirect("Error.html"); } } else { context.Response.Redirect("参数错误"); } }