摘要: 这里记录下经常用到的三个方法 1.GridView_RowCreated 1protected void gridview_RowCreated(object sender, GridViewRowEventArgs e) 2{ 3 if (e.Row.RowType == DataControlRowType.DataRow) 4 { 5 6 LinkBu... 阅读全文
posted @ 2007-12-12 16:50 CowboyRyan 阅读(360) 评论(1) 推荐(0) 编辑
摘要: ok,熟记Regular Expression语法后,继续学习其用法. 构造Regular Expression需要涉及Regex类,在Regex类中包括:IsMatch()、Replace()、Split()和Match方法; (1)IsMatch()方法 1public void Regex_Match() 2{ 3 string strRegex = "^0771[-]\\d{7... 阅读全文
posted @ 2007-12-11 14:28 CowboyRyan 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 今天,在这里记录下Regulator的一些基础知识,以便于以后的使用. 1.一些需要记住的语法. 字符匹配语法: \d 匹配数字 '\d'匹配3,不匹配c; \D 匹配非数字 ‘\D’匹配c,不匹配3; \w 匹配任意单字符 ‘\w\w’ 匹配A3,不匹配@3; \W 匹配非单字符 ‘\W’匹配@,不匹配c; \s 匹配空白字符 ‘\d\s\d’匹配3 d,不匹配abc; \S 匹配... 阅读全文
posted @ 2007-12-11 13:50 CowboyRyan 阅读(193) 评论(0) 推荐(0) 编辑
摘要: spanChk为页面上控制全选的CheckBox 阅读全文
posted @ 2007-11-20 13:39 CowboyRyan 阅读(1297) 评论(1) 推荐(0) 编辑
摘要: 这两天由于项目的需要,看了下Cookie的基础,顺便把代码也帖出来.以便将来用的时候可以快速找到 //编写Cookie HttpCookie myCookie = new HttpCookie("UserSettings"); myCookie["Font"] = "Arial"; myCookie["Color"] ... 阅读全文
posted @ 2007-11-14 19:37 CowboyRyan 阅读(186) 评论(1) 推荐(0) 编辑