7000到11000之间的必填字段验证? [英] required field validater between 7000 to 11000?
本文介绍了7000到11000之间的必填字段验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在7000到11000之间制作所需的现场验证器?
plz help
提前致谢。
how to make required field validater between 7000 to 11000?
plz help
Thanks in advance.
推荐答案
您好neeraj,
要检查文本框是否有值,请使用必填字段验证器。
但是要对给定范围应用检查,请使用:
Hi neeraj,
To check if the textbox has values, use required field validator.
But to apply a check for the given range use this :
<asp:rangevalidator runat="server" type="Integer" xmlns:asp="#unknown">
MinimumValue="7000" MaximumValue="11000" ControlToValidate="TextBoxId"
ErrorMessage="Value must be a number between 4000 and 11000" /></asp:rangevalidator>
希望这有帮助!! :)
问候,
Praneet
Hope this helps !! :)
Regards,
Praneet
使用jquery验证数值:
Use the jquery to validate the numeric values:
(document).ready(function(){
(document).ready(function() {
这篇关于7000到11000之间的必填字段验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文