i’d like to hide item (panel) when textbox value is 0 or null.
if (Wier_r1.Text == null | Wier_r1.Text=="0") panelR1.Visible = false;
else panelR1.Visible = true;
Why it doesn’t work when in texbox is nothing – null. With 0 is working.
Because TextBox.Text is never null. Is an empty string.
Your test should be:
and the correct OR opertator in this case is || not |.