Right now the code below tests for a blank text box. If it is blank it returns the error stated below the if statement. That works fine, but I also want it to check for wh
You should check the manual:
http://msdn.microsoft.com/en-us/library/system.string.isnullorwhitespace.aspx
Indicates whether a specified string is null, empty, or consists only of white-space characters.
So use another function if you don't want any spaces (or other whitespace) to be present, like Contains or using a RegEx.