上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 66 下一页
摘要: 摘要 缺省情况下,ASP.NET应用程序以本机的ASPNET帐号运行,该帐号属于普通用户组,权限受到一定的限制,以保障ASP.NET应用程序运行的安全。但是有时需要某个ASP.NET应用程序或者程序中的某段代码执行需要特定权限的操作,比如某个文件的存取,这时就需要给该程序或相应的某段代码赋予某个帐号的权限以执行该操作,这种方法称之为身份模拟(Impersonation)。本文介绍了在ASP.NE... 阅读全文
posted @ 2007-09-03 15:33 roboth 阅读(540) 评论(0) 推荐(0) 编辑
摘要: 按字节地复制文件 FileStream srcfile = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read); FileStream desfile = new FileStream(path2, FileMode.Create, FileAccess.Write, FileShare.Write); in... 阅读全文
posted @ 2007-09-02 21:00 roboth 阅读(172) 评论(0) 推荐(0) 编辑
摘要: public static void Main() { //写入大对象到SqlServer FileStream fs = new FileStream("C:\\test.bmp",FileMode.OPen,FileAccess.Read); BinaryReader br = new BinaryReader(fs); SqlConnection conn = new SqlConnect... 阅读全文
posted @ 2007-08-31 17:27 roboth 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 关于:以前的某个程序安装已在安装计算机上创建挂起的文件操作 解决办法 阅读全文
posted @ 2007-08-28 10:36 roboth 阅读(530) 评论(0) 推荐(0) 编辑
摘要: Polymorphism! 阅读全文
posted @ 2007-08-27 19:28 roboth 阅读(176) 评论(0) 推荐(0) 编辑
上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 66 下一页