摘要: 1.通过枚举获取属性的方法////// 获取枚举属性/////////publicstaticString GetEnumDesc(Enum e) {FieldInfo EnumInfo = e.GetType().GetField(e.ToString());DescriptionAttribute[] EnumAttributes = (DescriptionAttribute[])EnumInfo. GetCustomAttributes(typeof(DescriptionAttribute), false);if (EnumAttributes.Length > 0) {ret 阅读全文
posted @ 2014-02-19 16:30 青城刺客 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 1. 新建一个配置文件log4net.config,配置方法同成web.config或app.config一致; <?xml version="1.0" encoding="utf-8"?><configuration> <configSections> <section name="log4net 阅读全文
posted @ 2017-05-22 14:16 青城刺客 阅读(486) 评论(0) 推荐(1) 编辑
摘要: 首先需要把[System.Web.Script.Services.ScriptService]前边的注释去掉,放开权限,其次需要在web.config 里<system.web节点下>添加 <webServices> <protocols> <add name="HttpGet"/> <add na 阅读全文
posted @ 2017-01-08 12:20 青城刺客 阅读(666) 评论(0) 推荐(0) 编辑
摘要: 当value是一个字符串是直接使用value会提示value没有定义,这时需要转换下value,用""+value来替换就可以了。 阅读全文
posted @ 2014-03-26 16:26 青城刺客 阅读(134) 评论(0) 推荐(0) 编辑
摘要: http://int.dpool.sina.com.cn/iplookup/iplookup.php 阅读全文
posted @ 2014-03-10 16:35 青城刺客 阅读(95) 评论(0) 推荐(0) 编辑