I am having a problem where i am trying to check if two label values are equal too null. One of the labels is null and the other contains a string value. The code i have seems to only check if one of the labels is empty and not the other.
heres the statement in question
Can anyone see why it would not be hitting the else if Lbl2 has a value.
Thanks Inkey
heres the statement in question
if (string.IsNullOrEmpty(Lbl1.Text) || string.IsNullOrEmpty(Lbl2.Text)) { messagebox.show("Boxes Empty"); } else { messagebox.show("Boxes not empty"); }
Can anyone see why it would not be hitting the else if Lbl2 has a value.
Thanks Inkey