很多这样得方法
string file = string.Format("attachment;filename={0}",filename);
Response.ClearHeaders();
Response.Charset = "GB-2312";
Response.ContentEncoding = System.Text.Encoding.Default;
Response.AppendHeader("Content-disposition", file);
Response.Write(data);
Response.End();
这种方法不能在框架中导出 在框架中使用 下载的时候只能得到 当前数据控件所在得.net页面不知道高手有什么好的方法没有?
string file = string.Format("attachment;filename={0}",filename);
Response.ClearHeaders();
Response.Charset = "GB-2312";
Response.ContentEncoding = System.Text.Encoding.Default;
Response.AppendHeader("Content-disposition", file);
Response.Write(data);
Response.End();
这种方法不能在框架中导出 在框架中使用 下载的时候只能得到 当前数据控件所在得.net页面不知道高手有什么好的方法没有?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货