10 2012 档案
ASP.net验证控制之CustomValidator控件
摘要:CustomValidator控件也称为自定义验证控件,通过RequiredFieldValidator控件结合CompareValidator控件、RangeValidator控件或RegularExpressionValidator控件之中的一个或多个就能满足asp.net开发中的90%以上的验证要求,但是有一些特殊的验证用上述控件组合无法达到验证要求,比如要求用户填写一个奇数。为了满足一些特殊的验证要求,在asp.net中还有一个CustomValidator控件,在这个控件中可以自己写验证规则。 CustomValidator类是BaseValidator抽象类,所以Custom... 阅读全文
posted @ 2012-10-31 18:39 非零 阅读(13255) 评论(0) 推荐(0)
常用正则表达式
摘要:摘自:http://deerchao.net/tutorials/regex/common.htm说明正则表达式网址(URL)[a-zA-z]+://[^\s]*IP地址(IP Address)((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)电子邮件(Email)\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*QQ号码[1-9]\d{4,}HTML标记(包含内容或自闭合)<(.*)(.*)>.*<\/\1>|<(.*) \/>密码(由数字/ 阅读全文
posted @ 2012-10-11 19:15 非零 阅读(398) 评论(0) 推荐(0)
显示BulletedList控件所有样式,并实现点击改变
摘要:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BulletedList.aspx.cs" Inherits="BulletedList" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http:/ 阅读全文
posted @ 2012-10-11 17:31 非零 阅读(257) 评论(0) 推荐(0)