Skip to Content
0
Sep 16, 2007 at 11:38 AM

Need to validate to the Inputs in code

27 Views

Hello All,

I need to validate the input given from format XXXXXXXXXX to XXX-XXX-XXXX.The system should take <b>only digits</b> and it should <b>not allow user to enter more than 10 digits</b>.Please help me in reaching the above requirements.

Also please tell me whether can I write my code after PAI.Does writing code like this validates the input given or where should i write my code..........Please suggest