C#下载远程服务器文件到本地服务器
2005-10-03 17:03
876 查看
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="gb2312" %>
<script language="c#" runat="server">
private void Page_Load(object sender,EventArgs e)
protected void ImgUrl_Click(object sender,EventArgs e)
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>下载图片</title>
<style type="text/css">
</style>
</head>
<body>
<form runat="server">
<table width="500" height="143" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>请输入图片路径:
<asp:TextBox ID="ImgUrl" runat="server" Width="300" Text="http://"; onMouseOver="this.select()"></asp:TextBox>
<br><br>
请输入保存名称:
<asp:TextBox ID="ImgName" runat="server" Width="200"></asp:TextBox>
<asp:Button ID="Get" runat="server" Text="下载" onClick="ImgUrl_Click"></asp:Button>
<br><br>
<asp:Label ID="Msg" runat="server"></asp:Label>
</td>
</tr>
</table>
</form>
</body>
</html>
<script language="c#" runat="server">
private void Page_Load(object sender,EventArgs e)
protected void ImgUrl_Click(object sender,EventArgs e)
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>下载图片</title>
<style type="text/css">
</style>
</head>
<body>
<form runat="server">
<table width="500" height="143" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>请输入图片路径:
<asp:TextBox ID="ImgUrl" runat="server" Width="300" Text="http://"; onMouseOver="this.select()"></asp:TextBox>
<br><br>
请输入保存名称:
<asp:TextBox ID="ImgName" runat="server" Width="200"></asp:TextBox>
<asp:Button ID="Get" runat="server" Text="下载" onClick="ImgUrl_Click"></asp:Button>
<br><br>
<asp:Label ID="Msg" runat="server"></asp:Label>
</td>
</tr>
</table>
</form>
</body>
</html>
相关文章推荐
- C#访问远程服务器共享目录下载文件到本地
- 下载(二)客户端通过C# 代码直接从服务器下载文件到本地
- C# 中WinForm 应用程序实现远程文件管理(上传、下载)的种种问题——远程服务器返回错误
- java下载远程http地址的图片文件到本地-自动处理图片是否经过服务器gzip压缩的问题
- c#实现 ftp http共享方式下载文件 并对比本地文件和服务器文件的更新时间 判断性下载
- 下载(二)客户端通过C# 代码直接从服务器下载文件到本地
- python urllib从远程服务器下载文件到本地
- 下载远程(第三方服务器)文件、图片,保存到本地(服务器)的方法、保存抓取远程文件、图片
- 自动将远程页面的文件中的图片下载到本地服务器
- C#下载远程文件到本地
- C# 从FTP服务器下载文件到本地
- javascript+C#下载服务器文件到本地方法
- 服务器学习之mac终端与远程服务器上传下载文件到本地
- C#中从服务器中下载execl文件到本地
- 本地windows机器和远程Linux服务器之间文件传输 -- Xshell 使用sftp 上传下载文件
- C# 下载远程http文件到本地
- C#怎样从指定服务器上下载指定文件到本地电脑上
- C# 把本地文件上传到服务器上,和从服务器上下载文件
- java下载远程http地址的图片文件到本地-自动处理图片是否经过服务器gzip压缩的问题
- C#客户端直接从服务器下载文件到本地