System Information

Impossible Is Nothing...

导航

2005年11月24日 #

Response.BinaryWrite()下载时文件名的问题.

摘要: 我们经常将文件上传到数据库中,比如Sql Server中.然后在下载的时候,用的比较多的也就是Response.BinaryWrite()方法,然而如果直接输出的话,其文件名总是为你的页面的文件名,如downLoadFile.aspx.其解决方法为: 1 Page.Response.Buffer=true; 2 Page.Response.Clear(); 3 //这里的ContentT... 阅读全文

posted @ 2005-11-24 22:42 SysInfo 阅读(2169) 评论(0) 推荐(0) 编辑