Warning: unpack(): Type V: not enough input, need 4, have 0 in /mnt/mydata/x/websites/u_cndev/us-includes/3rdparty/secache/secache.php on line 74

Warning: Trying to access array offset on value of type bool in /mnt/mydata/x/websites/u_cndev/us-includes/3rdparty/secache/secache.php on line 75
IE对HTTP流的HEAD部分的MIME头 application/octet-stream 具有直接下载的特性 <- 中国开发网
中国开发网: 论坛: 程序员情感CBD: 贴子 276515
王中王: IE对HTTP流的HEAD部分的MIME头 application/octet-stream 具有直接下载的特性
IE对HTTP流的HEAD部分的MIME头 application/octet-stream 具有直接下载的特性,所以如下解决。



Response.Clear()

Response.ContentType = "application/octet-stream"

Response.AddHeader("Content-Disposition", "attachment;FileName=" + HttpUtility.UrlEncode(filename, System.Text.Encoding.UTF8))

Response.WriteFile(filepath+filname)

Response.End()
http://wangzw.wordpress.com/
个性化台历、日历制作
http://shop33697570.taobao.com/

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录