Posted on: 3/7/2013 10:46:49 AM | Views : 248

Hi All,
I currently want to write some code that allows me to loop through about 5 or 6 textfields on my webpage, and if any of them are null or == "" then show an error message.  How would i do this?
At the moment i validate each one, but the if statement is getting a bit to long for example:
if (txtName.Text == NULL || txtName.Text == "" && txtTitle.Text == NULL || txtTitle.Text == "" etc) { //show error message } else { //call dataset }
...

Go to the complete details ...