Hi, I'm a student and I have the following problem. I am developing a form in C # and I would like to avoid some txt being empty, I have read that this is a way of doing it:
if (this.txt.Text.Equals(""))
{
Response.Write("El campo esta vacio");
}
But it turns out that I have several txt, there is some way to validate that they are not empty without using as many if, or I will have to do so. Thank you