or
Response.ContentType = "application/octet-stream"
Response.AddHeader "Content-Disposition","attachment; filename=xx.xls"
Response.ContentType = "application/octet-stream"
Response.AddHeader "Content-Disposition","attachment; filename=xx.xls"
解决方案 »
- ASP.NET问题,关于页面登录与注册的!!高手请进
- 控制label标签显示的行数
- 函数如何返回数组
- 关于框架间的刷新问题?请大家来看看,谢谢
- B/S客户端使用加密狗
- 快来抢分 怎么把DateTime类型的变量 插入到oracle8i数据库中的date字段里
- 如何取程序集的编译时间
- 运行时出现"一个页只能有一个服务器端FORM标记"怎么解决啊???(C#)多谢!!!!
- 急急求助!怎样辨认原文件和改名后的复制文件?怎样区分两者?
- 请教updatepanel和ScriptManager.RegisterStartupScript的共用问题
- OleDbCommand的参数问题 求解!
- xsl文件样取出CDATA中的内容?xsl中要加入什么代码?
不知道 是不是 我写的不对
Response.ContentType="unknown"
Response.Redirect("System.AppDomain.CurrentDomain.BaseDirectory + "Temp/xx.xls" )
or
Response.ContentType = "application/octet-stream"
Response.AddHeader "Content-Disposition","attachment; filename=xx.xls"
Response.Redirect("System.AppDomain.CurrentDomain.BaseDirectory + "Temp/xx.xls" )