FileStream.Close() Set FileStream = nothing end if %>把上述代码存成asp类型的文件,使用时类似:download.asp?filename=a.gif。2、使用WebClient在下载按钮事件中加入如下代码System.Net.WebClient wc = new System.Net.WebClient();wc.DownloadFile( "http://localhost/a.gif", "c:a.gif");上述代码会把服务器端的a.gif文件在没有任何提示的情况下下载的客户端的c盘,没有任何提示还是比较可怕的,不过有的时候确实需要这样做。该代码也可以在桌面程序运行。