The Message text: |
Hi!,
This email was created by [MemberName] <[MemberEmail]> who thought you would be interested in the following Article:
"to validate for numbers and alphabets in c# asp.net2.0 in codebehind file" Hi,Try this:bool includesNotOnlyNumeric = Regex.IsMatch(textBox.Text, @"\D");if (includesNotOnlyNumeric){ // don't show an alert box}else{ // show an alert box}
CodeProject also contains hundreds of articles, free source code samples and applications to help in your day to day programming. Why not give it a try! |