Problem solve Get help with specific problems with your technologies, process and projects.

Verifying character input in an input box

Is there a way to check character input into an input box similar to using System.Windows.Forms.KeyPressEventArgs with text boxes?
I assume you're trying to do the same you can do on Windows on the Web. On the Web, it makes no sense to validate key presses with .NET code, as that would require a postback for each key being pressed, which would make for a terrible user experience. So, you attach to the TextChanged event on the textbox, and do your processing there.

Dig Deeper on Win Development Resources

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.