![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
asp.net
文章平均质量分 72
liudapeng1126
这个作者很懒,什么都没留下…
展开
-
中国身份证号码验证,支持15,18位
/// /// 验证身份证号码 /// /// 身份证号码 /// 验证成功为True,否则为False public static bool CheckIDCard(string Id) { if (Id.Length == 18) {原创 2008-06-17 16:32:00 · 409 阅读 · 0 评论 -
.net验证图片做法
private void ShowImg(string colorf,string colorb) { //colorf=FF0000&colorb=EFF3FF Random ran = new Random(); int intRandom = ran.Next(10001, 99999);原创 2008-06-17 17:00:00 · 258 阅读 · 0 评论 -
JS的正则表达式
//校验是否全由数字组成 [code] function isDigit(s) { var patrn=/^[0-9]{1,20}$/; if (!patrn.exec(s)) return false return true } [/code] //校验登录名:只能输入5-20个以字母开头、可带数字、“_”、“.”的字串 [code] function isRegisterUse原创 2008-06-18 09:39:00 · 232 阅读 · 0 评论 -
C# 中随机生成字母
protected void Button1_Click(object sender, EventArgs e) { Response.Write(GenerateRandom(6).ToLower().ToString()); } private static char[] constant = { a, b, c,转载 2008-06-17 15:50:00 · 1004 阅读 · 0 评论 -
C#实现所有经典排序算法
class SelectionSorter { private int min; public void Sort(int[] arr) { for (int i = 0; i < arr.Length - 1; ++i) {转载 2008-06-17 16:01:00 · 270 阅读 · 0 评论