5
Reply

How to restrict the special characters being entered in text

Yugesh Naid

Yugesh Naid

Aug 14 2017 2:37 PM
302

Hi

How to restrict the special characters being entered in textbox (ASP.Net, C#.Net, jQuery).

My Current Validation is working as expected [when user types in textbox],

but the problem is it’s getting failed when user Copy Special Characters (#,{,},|) and Paste into the textbox then it’s not working.

How can I prevent the user to Type/Copy Paste Special Characters into my Textbox?

Please assist me.
Thanks.


Answers (5)