5
Answers

How to restrict the special characters being entered in text

Yugesh Naid

Yugesh Naid

7y
312
1

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)