摘要: 找到两种方法.第一种是最一般的. // Identify the file to download including its path.    string filepath = Server.MapPath("softfile/this.rar"); // Identify the file name.     string filename = System.IO.Path.GetFile... 阅读全文
posted @ 2010-10-22 12:51 lcisok 阅读(1996) 评论(0) 推荐(0) 编辑
摘要: 1、String.Format将指定的 String 中的每个格式项替换为相应对象的值的文本等效项。例子:int iVisit = 100;string szName = "Jackfled";Response.Write(String.Format("您的帐号是:{0} 。访问了 {1} 次.", szName, iVisit));C#的String.Format举例stringstr1 =s... 阅读全文
posted @ 2010-10-22 12:44 lcisok 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 知识点:ftp协议有两种工作方式:port方式和pasv方式,中文意思为主动式和被动式。port(主动)方式的连接过程是:客户端向服务器的ftp端口(默认是21)发送连接请求,服务器接受连接,建立一条命令链路。当需要传送数据时,服务器从20端口向客户端的空闲端口发送连接请求,建立一条数据链路来传送数据。  pasv(被动)方式的连接过程是:客户端向服务器的ftp端口(默认是21)发送连接请求,服务... 阅读全文
posted @ 2010-10-22 12:38 lcisok 阅读(689) 评论(0) 推荐(0) 编辑