![]() |
#2
bygg2007-08-31 17:04
|
public void SaveXml(string xmlString)
{
HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment;filename=Excel.xls");
HttpContext.Current.Response.Charset = "UTF-8";
HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.UTF8;
HttpContext.Current.Response.ContentType = "application/vnd.ms-excel"; //"application/ms-excel";
this.EnableViewState = false;
HttpContext.Current.Response.Write(xmlString);
HttpContext.Current.Response.End();
}
为什么用上面那个方法导入excel为出现下面的乱码????excel用的是2007........
鎸囨爣
瀹㈡埛缂栧彿 寮