随笔分类 -  asp.net

摘要:public static string GetBarcode(string format, string value, int? width, int? height) { BarcodeWriter writer = null; Bitmap bitmap = null; string strb 阅读全文
posted @ 2016-04-22 22:52 鸡蛋面 阅读(1203) 评论(0) 推荐(0)
摘要:在asp.net中,HttpContext是主线程内唯一对象。在web应用中开启多线程,在另外一个线程中是无法访问HttpContext。如果需要在另外一个线程中使用HttpContext.Current.Request.MapPath("/a.txt")来获取文件的物理路径,可以使用: Host... 阅读全文
posted @ 2015-06-09 10:54 鸡蛋面 阅读(367) 评论(0) 推荐(0)
摘要:名称空间:System.IO浏览文件系统和执行操作的类:System.MarshalByRefObject .net中用于远程操作的基对象类,允许在应用程序域之间编组数据FileSystemInfo 文件系统对象的基类FileInfo和File 文件系统上的文件Directory和DirectoryInfo 文件系统上的文件夹Path 处理路径名DriveInfo 驱动器的信息递归访问目录和文件: string outputText = ""; int level = -1; int indentCount = 0; //文件夹计数 int fileCount = 0... 阅读全文
posted @ 2013-01-10 16:55 鸡蛋面 阅读(207) 评论(0) 推荐(0)