LittlBUGer
Programmer
Hello. I have an ASP.NET 2.0 website using the "built-in" ASP user management/roles/registration and whatnot. I've created a wizard on a page to do the user registration. One thing I've noticed is that though users can register with spaces in their usernames, anything else other than letters and numbers bombs out due to SQL and such. Since I don't see any reason for anyone using special characters in their usernames, I just want to restrict them from being able to create a user with such characters to make things easy. I think just using a regular expression validator will work but I'm no good at regular expressions. Can anyone help me with this or possibly suggest a better solution? I'm just trying to validate against a simple text box. Thanks.
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein