Solved

Restrict characters in ASP.NET textbox

Posted on 2006-06-20
2
432 Views
Last Modified: 2012-08-14
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?
0
Comment
Question by:Mike_Stevens
2 Comments
 
LVL 7

Accepted Solution

by:
whityum earned 500 total points
ID: 16944398
RegEx one, use this as the expression:

[^a-z0-9]
0
 

Author Comment

by:Mike_Stevens
ID: 16944855
thanks...that is exactly what i was looking for.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now