摘要:
DBContext 1 public class DBContext 2 { 3 private static IObjectContainer _db; 4 public static IObjectContainer DB 5 { 6 get 7 { 8 if (_db == null) 9 {10 11 _db = Db4oFactory.OpenFile(Path);12 }13 ... 阅读全文
posted @ 2012-12-09 14:16
极简
阅读(474)
评论(0)
推荐(0)
摘要:
正则表达式常用功能:匹配,捕获,替换。匹配是基础,捕获是关键,替换就是在前面基础上调整一下位置。[url重写:正则表达式替换]1 string lookFor="^~/root/(\w{1,20})/somepage/(\d{1,8})/(\w)*?/(\d{1,8}).aspx$"2 string... 阅读全文
posted @ 2012-12-09 14:15
极简
阅读(460)
评论(0)
推荐(0)
摘要:
[检测某个邮箱地址是否存在]CheckEmail 1 public class CheckEmail 2 { 3 private static string mailQQ = "http://emailreg.qq.com/cgi-bin/signup/ajaxcheckmail?type=1&email={0}"; 4 private static string mailFox = "http://emailreg.qq.com/cgi-bin/signup/ajaxcheckmail?type=3&email={0}"; 5 priv 阅读全文
posted @ 2012-12-09 14:15
极简
阅读(678)
评论(0)
推荐(0)
浙公网安备 33010602011771号