All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
查询表里面有N组相同的记录经典SQL语句_[SQL Server教程]
优秀ASP.NET程序员的修炼之路_.net资料_编程技术
无论技术高低 利用HTML优化加快网页速度_[Html教程]
用PHP写mail时的注意事项_[PHP教程]
ASP.NET实例:在ASP.NET中创建使用全球唯一标识符_[Asp.Net教程]
ASP.NET,2.0移动开发之属性重写和模板化_.net资料_编程技术
Asp.Net编程基础经验技巧总结_[Asp.Net教程]
ASP生成WML文件源代码样本_[XML教程]
LINQ体验(1)——Visual,Studio,2008新特性_[Asp.Net教程]
扩展,GridView,控件,-,支持,Excel,及,Word,汇出_[Asp.Net教程]
Reading number is top 10 pictures
恶搞漫画2
The money of more than 100 countries and regions5
Look at the Spring Festival people crowded into the what kind
Beautiful vacuum girl3
NeedWallpaper5
Beauty shocked Japan Tokyo motor show model
The wise woman of chest2
不知名的美女素颜照1
美奂绝伦的风景
The money of more than 100 countries and regions17
Download software ranking
Unix video tutorial18
Adobe Flash Player(IE) 10.0.32.18 浏览器专用的FLASH插件
1400篇各类破解文章
The hero
Eclipse 4.2.1 For Win32
Professional killers2 data package
Tram sex maniac 2 (H) rar bag18
Ashlynn Video3
Prostitutes diary
电车之狼R
qq published in(发表于) 2014/7/9 1:39:12 Edit(编辑)
asp.net2.0验证控件之RegularExpressionValidator控件使用

asp.net2.0验证控件之RegularExpressionValidator控件使用

asp.net2.0验证控件之RegularExpressionValidator控件使用

RegularExpressionValidator控件

1.功能

该控件用于计算输入控件的值,以确定该值是否与某个正则表达式所定义的模式相匹配。

2.属性

RegularExpressionValidator控件部分常用属性及描述如表1所示。

表1 RegularExpressionValidator控件常用属性及描述



下面介绍ValidationExpression属性。该属性用于指定验证条件的正则表达式。常用的正则表达式字符及其含义如表2所示。

表2 常用正则表达式字符及其含义



下面列举几个常用的正则表达式。

验证电子邮件。

w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*

S+@S+.S+

验证网址。

HTTP://S+.S+

HTTP://S+.S+

验证邮政编码。

d{6}

[0-9]:表示0~910位数字。

d*:表示任意个数字。

d{3,4}-d{7,8}:表示中国大陆的固定电话号码。

d{2}-d{5}:验证由两位数字、一个连字符再加5位数字组成的ID号。

]*)?>[sS]*:匹配HTML标记。

3.方法

* 交叉链接:RegularExpressionValidator控件常用方法同Label控件类似,可参见Label控件常用方法。

4.事件

* 交叉链接:RegularExpressionValidator控件常用事件同Label控件类似,可参见Label控件常用事件。




添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.