Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

How to filter by key press ?

Avatar of brgdotnet
brgdotnetFlag for United States of America asked on
JavaScriptASP.NET
6 Comments1 Solution242 ViewsLast Modified:
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.
ASKER CERTIFIED SOLUTION
Avatar of Prakash Samariya
Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answers