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 userID = int.Parse(context.Request["userID"]); int inviteID = int.Parse(context.Request["inviteID"]); using (ConsortiaBussiness db = new ConsortiaBussiness()) { ConsortiaInviteUserInfo[] infos = db.GetConsortiaInviteUserPage(page, size, ref total, order, userID, inviteID); foreach (ConsortiaInviteUserInfo info in infos) { result.Add(FlashUtils.CreateConsortiaInviteUserInfo(info)); } value = true; message = "Success!"; } } catch (Exception ex) { log.Error("ConsortiaInviteUsersList", 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)); }