using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using MyCode.Project.Infrastructure.Exports; namespace MyCode.Project.WebApi { public partial class Page : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { //Response.Clear(); //清空无关信息 //Response.BufferOutput = false; //完成整个响应后再发送 //Response.Charset = "utf-8";//设置输出流的字符集 //Response.AppendHeader("Content-Disposition", "attachment;filename=test.xls");//追加头信息 //Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8");//设置输出流的字符集 //Response.ContentType = "application/vnd.ms-excel";// //创建2007的Excel //Response.Write("
>{i} |