Click here to Skip to main content
16,012,107 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All
I want to validate a text box from server side to restrict some foreign character , but during validation want to show which character are allow too.

i donot want to display the allow character , Is there any code which will show me the allow character check with the restrict character.

Thanks
Posted

1 solution

Is there any code
Why ask for code? Sounds like you are in need of 'Regular Expression'.

Make a regular expression that restricts the characters not allowed and use it. This can be done on client side too (instead of checking it on server!)
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 19-May-11 12:49pm    
Correct, a 5.
--SA

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