摘要: string fullPath = @"\WebSite1\Default.aspx"; string filename = System.IO.Path.GetFileName(fullPath);//文件名 “Default.aspx” string extension = System.IO. 阅读全文
posted @ 2020-01-10 15:57 青橙时光 阅读(4464) 评论(0) 推荐(0) 编辑
摘要: 1.创建泛型哈希表,然后加入元素 Dictionary<string,string> openWith=new Dictionary<string, string>(); openWith.Add("txt","notepad.exe"); openWith.Add("bmp","paint.exe 阅读全文
posted @ 2020-01-10 15:43 青橙时光 阅读(931) 评论(0) 推荐(0) 编辑
摘要: public class EncryptMethods { /// <summary> /// Md5加密 /// </summary> /// <param name="str">时间+随机数+令牌</param> /// <returns></returns> public string Enc 阅读全文
posted @ 2020-01-10 15:34 青橙时光 阅读(308) 评论(0) 推荐(0) 编辑
摘要: name为自定义节点的名称,type为自定义节点解析文件的命名空间和自定义节处理程序的类名 1. 在<configSections>节点中注册你所要定义的节点名称及用于处理该节点的配置节处理程序。代码如下: <configSections> <section name="dbFactory" typ 阅读全文
posted @ 2020-01-10 15:31 青橙时光 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 1.在安装nginx前首先要确认系统中是否安装了gcc、pcre-devel、zlib-devel、openssl-devel。 安装命令: yum -y install gcc pcre-devel zlib-devel openssl openssl-devel 2.nginx下载地址:http 阅读全文
posted @ 2020-01-10 15:15 青橙时光 阅读(257) 评论(0) 推荐(0) 编辑