[控件学习-2]Extra Valid TextBox

简介:
Asp.Net麻烦的验证方式,让我苦恼很久.
使用ms的验证控件导致排版苦上加苦,自己手工写判断更是痛苦无比.

在经受如此多的折磨之后,特意去搜集了一些这方面的控件,但是总是觉得不太适合自己.

刚好进行控件开发学习,所以把这些前辈高人的控件来出来研究了一下,吸取各自的一些特点,再加上自己的一些需求,修改了一个Extra Valid TextBox来解放自己的开发难题.

今天放上来给大家试下.不知道是否能满足各位平时的一些开发需求:

o_KTextBox.jpg

使用解释 ErrorMessage:验证失败之后的提示信息
ValidMethod:验证方法:
                                    OnBlur:失去焦点
                                    OnSubmit:页面提交
                                    All:全部
ValidType:严正类型:数字,时间,日期,外部正则表达式,非空....
ValidRegularExpression:外挂正则表达式

DateTimeValue:得到DateTime格式的Value;
IsEmpty == TextBox1.Text.Length == 0
IsIntType :是否是int
TextTrimed = TextBox1.Text.Trim();
CompareControl:与相同类型的另一个控件比较值是否相等

DLL Download /Files/walkingboy/LangZi.WebControl.KTextBox.rar


本文转自浪子博客园博客,原文链接:http://www.cnblogs.com/walkingboy/archive/2005/09/09/233023.html,如需转载请自行联系原作者

目录
相关文章
|
5月前
使用Form报错提示If ngModel is used within a form tag, either the name attribute must be set or the form
使用Form报错提示If ngModel is used within a form tag, either the name attribute must be set or the form
|
开发框架 JavaScript .NET
Asp.net 控件用法汇总-RadioButtonList、DropDownList、button、Checkbox...(续)
Asp.net 控件用法汇总-RadioButtonList、DropDownList、button、Checkbox...(续)
128 0
SAP WM初阶Storage Type上的SUM Indicator参数修改
SAP WM初阶Storage Type上的SUM Indicator参数修改
SAP WM初阶Storage Type上的SUM Indicator参数修改
SAP WM Movement Type 里的‘Ref.Stor.Type Search’字段用法初探
SAP WM Movement Type 里的‘Ref.Stor.Type Search’字段用法初探
SAP WM Movement Type 里的‘Ref.Stor.Type Search’字段用法初探
PyQt5 技术篇-设置输入框的placeholder方法,Qt Designer设置Line Edit、Text Edit编辑框的placeholder
PyQt5 技术篇-设置输入框的placeholder方法,Qt Designer设置Line Edit、Text Edit编辑框的placeholder
680 0
PyQt5 技术篇-设置输入框的placeholder方法,Qt Designer设置Line Edit、Text Edit编辑框的placeholder
Latex "Error: Extra alignment tab has been changed to \cr. "
Latex 编译时出现 Error: Extra alignment tab has been changed to \cr.  是因为\begin{tabular}后面的参数指定为7列,而实际排了8列数据。
4119 0