public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; //context.Response.Write("Hello World"); //获取帖子ID int topicId = Int32.Parse(context.Request["topicId"]); //先删除回帖 ReplyService replyService = new ReplyService(); bool r = replyService.DeleteByTid(topicId); //删除主贴 TopicService topicService = new TopicService(); bool b = topicService.Delete(topicId); context.Response.Write(b); context.Response.End(); }