Click here to Skip to main content
14,733,542 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
how to validate the the text box that accept within 100 numbers and allow only one dot and one decimal value and not more than three character in Text box.
Posted
Comments
Bojjaiah 30-Jan-12 1:55am
   
with in 100 numbers or lenth is 100(with symbols and special characters)?

clarify it.

Check out
C# Validating TextBox Control[^
]Numbers and Characters only Textbox Validation in C# ![^]

These links should give you enough information to do your own validations.
   
Hi,

Use regular exprssion validator for that.
@"[0-9]+(\.[0-9]?)?"

this is to validate one dot and one decimal value.improve this.

use below link to implement maching solution to you.
http://regexlib.com/REDetails.aspx?regexp_id=107[^]
   
v3

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