dcsimg
Restricting to alphanumeric characters.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Uday_Kiran
Posted On:   Monday, August 18, 2003 07:34 AM

I have a text field on which I want the user to enter only alpha numeric characters. Also, if he tries to paste any non-alphanumeric characters from the clipboard, the text field should be cleared. Any help in this direction is appreciated. Thanks.

Re: Restricting to alphanumeric characters.

Posted By:   Nitesh_Naveen  
Posted On:   Tuesday, August 19, 2003 06:16 AM

I think you shouldn't stick to removing these automatically. You should just promt the user about the validation if it fails. Just use the validation library as in this faq

Re: Restricting to alphanumeric characters.

Posted By:   Firat_Tiryaki  
Posted On:   Tuesday, August 19, 2003 01:57 AM

well, which characters you don't want?
About | Sitemap | Contact