Select from following answers:- TextBox1.Text == ""
- TextBox1.Text == String.Empty
- TextBox1.Length == 0
- string.IsNullOrEmpty(TextBox1.Text)
- All Above

Above all options are correct to check Text Value.But best option is string.IsNullOrEmpty as this is Dot Net in-built function and also check nullability.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator