I have couple of text boxes. In those text boxes I need to check few types.
Allow only Numbers and Decimals
Ex: 123.2323 //not allowed any characters
Allow only 2 numbers after decimal
Ex: 123.23 //not allowed any characters and only allowed 2 digits after decimal
Allow only 1 number after decimal
Ex: 123.2 //not allowed any characters and only allowed 1 digits after decimal
I have to check these validation in OnKeyPress event in text boxes.
If possible need 3 methods.
Please help me on this. Thanks in advance.