使用application/vnd.ms-excel方法输出EXCEL,但汉字成了乱码,怎么办?
System.IO.StringWriter tw = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(tw);
Response.Clear();
Response.ContentType = "application/vnd.ms-excel" ; this.EnableViewState = false;
Response.Write(ls_data);
Response.End();