博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2008年9月27日

摘要: 下载: string strFileName = Server.UrlDecode(Server.UrlDecode(FileName)); Response.AppendHeader("Content-Disposition", "attachment; filename=" + Server.UrlEncode(strFileName)); ... 阅读全文

posted @ 2008-09-27 09:54 hyd309 阅读(308) 评论(0) 推荐(0) 编辑

摘要: 2 /// 为创建的临时文件分配权限 3 /// 4 /// 5 /// 6 /// 7 /// SKY 2007-8-6 8 public void addpathPower(string pathname, string username, string power) 9... 阅读全文

posted @ 2008-09-27 09:41 hyd309 阅读(726) 评论(0) 推荐(0) 编辑

摘要: 首先要熟悉.NET中处理文件和文件夹的操作。File类和Directory类是其中最主要的两个类。了解它们将对后面功能的实现提供很大的便利。 本节先对和文件系统相关的两个.NET类进行简要介绍。 System.IO.File类和System.IO.FileInfo类主要提供有关文件的各种操作,在使用时需要引用System.IO命名空间。下面通过程序实例来介绍其主要属性和方... 阅读全文

posted @ 2008-09-27 09:08 hyd309 阅读(1140) 评论(0) 推荐(0) 编辑