Avatar of Indunil Sanjeewa Amarasinghe
Indunil Sanjeewa Amarasinghe
Flag for Sri Lanka

asked on 

Name Field Validation

Hello There,

Please be kind enough to provide me with a code to best validate a name field with or without initials.
E.g - The name field should be represented like the following;

A. Buddhi
L. Natan
Kumar. S or

All the above tests should pass without showing an error message.

If the name ends with a dot or starts with a dot it should give a message as *Required
any other data should be prevented on key input.

Kind Regards,
Indunil Sanjeeewa
C#.NET Programming

Avatar of undefined
Last Comment

8/22/2022 - Mon