摘要://前台代码 彩色下拉框源码的实现 //后台代码using System;using System.Web;using System.Reflection;using System.Drawing;using System.Collections.Generic; ...
阅读全文
posted @ 2008-04-28 20:15
文章分类 - ASP.NET控件ASP.NET控件
摘要://前台代码 彩色下拉框源码的实现 //后台代码using System;using System.Web;using System.Reflection;using System.Drawing;using System.Collections.Generic; ...
阅读全文
posted @ 2008-04-28 20:15
摘要:用正则表达式限制只能输入中文: 1.用正则表达式限制只能输入全角字符: 2.用正则表达式限制只能输入数字: 3.用正则表达式限制只能输入数字和英文: 4.计算字符串的长度(一个双字节字符长度计2,ASCII字符计1) String.prototype.len=function(){return this.replace([^\x00-\xff]/g,"aa").length;} ...
阅读全文
posted @ 2008-04-28 20:14
摘要:在使用RegularExpressionValidator验证控件时的验证功能及其验证表达式介绍如下: 只能输入数字:“^[0-9]*$”只能输入n位的数字:“^\d{n}$”只能输入至少n位数字:“^\d{n,}$”只能输入m-n位的数字:“^\d{m,n}$”只能输入零和非零开头的数字:“^(0|[1-9][0-9]*)$”只能输入有两位小数的正实数:“^[0-9]+(.[0-9]{2})?$...
阅读全文
posted @ 2008-04-02 22:43
|
||