Yugesh Naid

Yugesh Naid

  • NA
  • 12
  • 10.2k

How to restrict the special characters being entered in text

Aug 14 2017 2:37 PM

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)