在后台代码中获得一个下载地址比如"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 ");