use the built in validation control, and set the client option to be true
http://www.w3schools.com/aspnet/aspn...oncontrols.asp
i would use a
regular expression validator and a regex expression
then use the validation summary to return information about what happened in there is an option for clientscripting, set it to true
edit: changed recommended control type, i didn't remember htey had it...