public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; Guid id = new Guid(context.Request.Form["id"]); StuRelationshipModel m = new StuRelationshipBLL().Get(id); context.Response.Write(new JavaScriptSerializer().Serialize(m)); }
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string filename = "监护人信息.xls"; string filepath = context.Request.MapPath("..\\download\\") + filename; StuJHInfoModel[] ls = new StuRelationshipBLL().GetStuJHInfoModel().ToArray(); Excel.ExportToExcel(filepath, "监护人信息", "监护人信息一览", ls); }