日期:2014-05-20  浏览次数:20659 次

在后台代码中获得一个下载地址比如"http://www.csdn.net/download/file.rar",怎么用代码下载这个地址(文件)
同上。

------解决方案--------------------
直接转到那个超连接就可以下载了
------解决方案--------------------
this.response.redirt( "URL ");





window.open( 'URL ')
------解决方案--------------------
httpwebrequest,得到stream写到本地即可。
------解决方案--------------------
System.Net.WebClient c = new System.Net.WebClient();
c.DownloadFile( "http://localhost/MyWeb/a.gif ",@ "c:\a.gif ");