I have 10 textboxes, now i want to check that none of them are empty when a button is clicked. My code is :
if (TextBox1.Text == "")
{
errorProvider1.SetError(TextBox1, "Please fill the required field");
}
Is there any way that I can check all the textboxes at once, rather than writing for every individual?