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
There are various Validation possibilities, maybe have a look at this.
Else you can use something like
if (txtFirstName.Text == "" && txtFirstName.Text.indexOf(" ") == -1)
which checks for whitespaces :)