I want to validate text fields either carrying numbers or string that they should not be empty . how can i validate this before inserting data into database from form....

I want to validate text fields either carrying numbers or string that they should not be empty . how can i validate this before inserting data into database from form....

you can simply check the length of the text using for example TextBox1.TextLength and making sure that this is not 0

or your could use regular expressions. If you have not used these before google "Regular Expressions" and have a play