Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Regex alphanum = new Regex("[^a-zA-Z0-9]");
- if (alphanum.IsMatch(username.Text))
- {
- errortext.Text = errortext.Text + "</br>" + "Username must only consist of alphanumeric characters.";
- errortext.Visible = true;
- didFail = true;
- }
Add Comment
Please, Sign In to add comment