本文介绍了定期验证错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨..
我想要一个包含类似验证表达式的正则表达式验证器.
1.应该在10到500之间的范围
2.并且必须允许所有字符,数字,数字,空格和所有特殊字符.
不应有任何限制,用户可以输入任何特殊字符和数字,但只能输入10到500的长度.
hi ..
i want a regular expression validator that contain the validation expression like.
1. there should be a range between 10 to 500
2. and all character, numerals, digits ,white space and all special character must be allowed .
there should not be any restriction user can put any thing any special character and digits but only in length which is given that is 10 to 500.
推荐答案
<asp:RegularExpressionValidator ID="RegExp1" runat="server"
ErrorMessage="Password length must be between 7 to 10 characters"
ControlToValidate=" txtPassword "
ValidationExpression="^[a-zA-Z0-9'@&#.\s]{7,10}
这篇关于定期验证错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!