I am trying to catch and error in my code, it works fine when testing it
with a Label Visible set to True, however, I want it off unless there is an
error and then I want the property set to True from False, however, when I
turn it off in the properties and try coding with the following code, it
does not turn on the Visible property of the label any ideas? C# Webform
btw
catch(System.Exception caught)
{
lblErrorMessage.Visible.Equals("True");
lblErrorMessage.Text = DuplicateCUID;
return;
}