Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can anyone give me the validation expression for validating text box for numeric value of type decimal(3,2)
please...
Posted
Comments
Sandeep Mewara 25-Dec-12 11:22am    
And what have you tried so far?
pinky1810 26-Dec-12 2:19am    
I did't try any validation expression because i dont know much about this, Instead I tried to convert the textbox value to decimal by using parse and convert statement but did't work. In the DB the field type is decimal(3,2). can you give me the validation expression for this please

1 solution

Hi , try to use regex value (\d{3}\.\d{2}\)
 
Share this answer
 
Comments
pinky1810 26-Dec-12 0:56am    
Hi. Thanks for reply, I have text box inside the gridview , I used (\d{3}\.\d{2}\) as a regular expression , but it is showing error while binding the grid.
error:(\d{3}\.\d{2}\) is not a valid regular expression.
i want textbox to accept only numbers like, 2.22,1.22,9.66 etc


please help

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