//Response.Clear();
//Response.Buffer = true;
//Response.Charset = "GB2312";
//Response.AppendHeader("Content-Disposition", "attachment;filename=" + filename + "" + System.DateTime.Today.ToShortDateString() + ".xls");
//Response.ContentEncoding = System.Text.Encoding.UTF7;
//Response.ContentType = "application/vnd.ms-excel";
//this.EnableViewState = false;
//System.IO.StringWriter oStringWriter = new System.IO.StringWriter();
//System.Web.UI.HtmlTextWriter oHtmlTextWriter = new System.Web.UI.HtmlTextWriter(oStringWriter);
//this.divResport.RenderControl(oHtmlTextWriter);
//Response.Output.Write(oStringWriter.ToString());
//Response.Flush();
//Response.End();
我的页面是动态生成的table格式,用2003导出来可以查看,但是2010版本就不能了,都是乱码,请问有什么可以解决的办法吗,没有分不好意思啊