Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all visitors
i have create one textbox on my webform.
my textbox id="txtbalance". i want to let user input the minimum=1000.
but when i use property only minimum,it'ill error coz of the maximum less then minimun.

Please anyone help me about this.

Thanks
TONY
Posted

hi,

Your MaximumValue property value must be greater then 1000, otherwise it wont work. For reference you can check this example below
http://www.w3schools.com/aspnet/showasp.asp?filename=demo_rangevalidator2[^]
Hope this will help.
 
Share this answer
 
Comments
ProEnggSoft 18-Mar-12 3:31am    
Good link to test online. 5!
soeun tony 18-Mar-12 9:22am    
Thanks for your reply.
In this sample,they use range value between 1 to 100.but for my work,i don't care about the maximum value.i just care about minimum only.

Thanks
TONY
<asp:textbox id="txtPassword" runat="server" textmode="Password" xmlns:asp="#unknown">
<asp:regularexpressionvalidator id="REV1" runat="server" errormessage="Password can only be between 6 to 15 characters.!" xmlns:asp="#unknown">
ControlToValidate="txtPassword" ValidationExpression="[\s\S]{6,15}">
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900