摘要:
这里记录下经常用到的三个方法 1.GridView_RowCreated 1protected void gridview_RowCreated(object sender, GridViewRowEventArgs e) 2{ 3 if (e.Row.RowType == DataControlRowType.DataRow) 4 { 5 6 LinkBu... 阅读全文
摘要:
ok,熟记Regular Expression语法后,继续学习其用法. 构造Regular Expression需要涉及Regex类,在Regex类中包括:IsMatch()、Replace()、Split()和Match方法; (1)IsMatch()方法 1public void Regex_Match() 2{ 3 string strRegex = "^0771[-]\\d{7... 阅读全文
摘要:
今天,在这里记录下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 匹配... 阅读全文
摘要:
spanChk为页面上控制全选的CheckBox 阅读全文
摘要:
这两天由于项目的需要,看了下Cookie的基础,顺便把代码也帖出来.以便将来用的时候可以快速找到 //编写Cookie HttpCookie myCookie = new HttpCookie("UserSettings"); myCookie["Font"] = "Arial"; myCookie["Color"] ... 阅读全文