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