摘要:
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 阅读全文
摘要:
1. 新建一个配置文件log4net.config,配置方法同成web.config或app.config一致; <?xml version="1.0" encoding="utf-8"?><configuration> <configSections> <section name="log4net 阅读全文
摘要:
首先需要把[System.Web.Script.Services.ScriptService]前边的注释去掉,放开权限,其次需要在web.config 里<system.web节点下>添加 <webServices> <protocols> <add name="HttpGet"/> <add na 阅读全文
摘要:
当value是一个字符串是直接使用value会提示value没有定义,这时需要转换下value,用""+value来替换就可以了。 阅读全文
摘要:
http://int.dpool.sina.com.cn/iplookup/iplookup.php 阅读全文