摘要: 我后台做好了,想做个session登陆验证,在App_Code文件下做个PageBase类继承 public class PageBase : System.Web.UI.Page { public PageBase() { } } 把验证函数放在PageBase内 然后在每个后台页面添加 运行一直提示session出错 后来才发现是运行顺序的问题,于是把函数放在OnPreInit里,功能实现。 阅读全文
posted @ 2009-10-28 09:57 winform 阅读(721) 评论(3) 推荐(0)
摘要: #region 全角半角转换 ///全角空格为12288,半角空格为32 ///其他字符半角(33-126)与全角(65281-65374)的对应关系是:均相差65248 /// public static string ToSBC(string input) 阅读全文
posted @ 2009-10-28 09:22 winform 阅读(746) 评论(0) 推荐(0)
摘要: //全角空格为12288,半角空格为32 //其他字符半角(33-126)与全角(65281-65374)的对应关系是:均相差65248 //document.write((65281).toString(16)+"----"+(65374).toString(16)+"----"+(12288).toString(16)); 阅读全文
posted @ 2009-10-28 09:02 winform 阅读(477) 评论(0) 推荐(0)
摘要: string url = "http://yyyd.gyzs.net/"; WebClient client = new WebClient(); string v = client.DownloadString(url); string[] dates = v.Replace("<div class=", "~").Split('~'); string[] date1 = dates[3]... 阅读全文
posted @ 2009-10-26 10:27 winform 阅读(404) 评论(0) 推荐(0)