Restrict characters in ASP.NET textbox

I have a textbox on an asp.net webform that i would like to restrict it so on certain characters can be entered.  I only want to allow a-z (upper and lower) and 0-9.  Can i do this with a validation control?
Mike_StevensAsked:
Who is Participating?
 
whityumCommented:
RegEx one, use this as the expression:

[^a-z0-9]
0
 
Mike_StevensAuthor Commented:
thanks...that is exactly what i was looking for.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.