Hi Abhays,
Abhays says:
if (!string.IsNullOrEmpty(textbox.Text)) {
.........
}
It is used to check whether the specified string is not null or an Empty string. If string is null or an Empty then this statement will not execute.
Abhays says:
if (Textbox.Text != "")
{
....
}
It is used to check whether the specified string is not an Empty string. If string is an Empty then this statement will not execute.
Abhays says:
if (Textbox.Text != null)
{
....
}
It is used to check whether the specified string is not null string. If string is null then this statement will not execute.