I have a requirement to have a text box control, on a web form. The requirements states that the
application user will only be able to delete text from the text box and nothing else. So in other words
I only want it so that the delete button is recognized when that key is pressed. All of the other keyboard keys will not work in the text box control. How can I enforce this? I imagine I would use Java script somehow, but that is all I can think of. Can someone help me out? Possibly you have some code to share as an example.
For example suppose the page loads and my textbox control has three words in it : I like Sushi
the cursor will be placed at the end of the text box and the user can press the delete button to delete a character at a time. How can I do that?
I am using Asp.net with web forms.
If you google, you will find several implementations, such as this.