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
String.IsNullOrWhiteSpace returns true for a null string or a string that is purely whitespace For example " ".
If you do not want to allow spaces in the string ie ("B ike") test the string value for spaces using Contains(' ').