首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

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

2012-02-04 
在后台代码中获得一个下载地址比如http://www.csdn.net/download/file.rar,怎么用代码下载这个地址(文件

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

热点排行