public void ProcessRequest(HttpContext context) { bool value = false; string message = "Fail!"; XElement result = new XElement("Result"); int total = 0; try { int page = int.Parse(context.Request["page"]); int size = int.Parse(context.Request["size"]); int order = int.Parse(context.Request["order"]); int consortiaID = int.Parse(context.Request["consortiaID"]); int applyID = int.Parse(context.Request["applyID"]); int state = int.Parse(context.Request["state"]); using (ConsortiaBussiness db = new ConsortiaBussiness()) { ConsortiaApplyAllyInfo[] infos = db.GetConsortiaApplyAllyPage(page, size, ref total, order, consortiaID, applyID, state); foreach (ConsortiaApplyAllyInfo info in infos) { result.Add(FlashUtils.CreateConsortiaApplyAllyInfo(info)); } value = true; message = "Success!"; } } catch (Exception ex) { log.Error("ConsortiaApplyAllyList", ex); } result.Add(new XAttribute("total", total)); result.Add(new XAttribute("value", value)); result.Add(new XAttribute("message", message)); context.Response.ContentType = "text/plain"; context.Response.Write(result.ToString(false)); }