Hide label in Formview ASP.NET
问题 I have a "Banned" field in the formview. If the value of this field in false I want to hide the label "From" and "To". Item template control: <asp:Label ID="BannedCheckBox" runat="server" Text='<%# DisplayTruthValue(Eval("Banned").ToString())%>' /> <asp:Label ID="BannedFromLabel" runat="server" Text='<%# "From: " + Eval("BannedFrom")%>' /> <asp:Label ID="BannedToLabel" runat="server" Text='<%# "To: " + Eval("BannedTo")%>' /> Code behind: Protected Sub FrmViewPatron_DataBound(sender As