how to check if textbox is empty in c# code example
Example 1: c# check if textbox is not empty
if (String.IsNullOrEmpty(textBox1.Text))
{
// Do something...
}
Example 2: how to check if textbox is empty in c#
string.IsNullOrWhiteSpace(textBox.Text); // returns boolean