I wonder if there is any way to do this:
<asp:Label ID="lblSomething" runat="server" Visible="this.ShowLabel"/>
and in the code behind:
public bool ShowLabel {get;set;}
I know some of you may ask me why I need it but I find this approach cleaner than saying this in the code behind:
lblSomething.Visible = this.ShowLabel
And also I could say this in source view:
<% if(this.ShowLabel){ %>
<asp:Label ID="lblSomething" runat="server" Text="Something"/>
<% } %>
but again, the first one would be more intuitive to me. Any ideas?