我正在执行以下代码,但我仍然可以查看该 tr,它并没有变得不可见。我也尝试使用 as 属性....请帮助....
public bool ControlEnabled() {return false; }
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:MultiView ID="mv" runat="server">
<asp:View ID="view1" runat="server">
<table class="homediv">
<tr id="RAggMkttr" runat="server" Visible='<%# ControlEnabled() %>' >
---
public bool Test { get { return true; } }
<tr id="RAggMkttr" runat="server" Visible='<%# Test %>' >