1
使用方法我得到了下面的代碼在我的ASP-網站在Serverside集團ControlIDs
<asp:Repeater runat="server" ID="repFoo">
<ItemTemplate>
<asp:Button runat="server" ID="btnfoo" Visible='<%#!String.IsNullOrEmpty("FOOValue")%>' />
</ItemTemplate>
</asp:Repeater>
如何正確的語法爲String.IsNullOrEmpty方法?
可視需要一個布爾值,而不是一個字符串,但你的工作方式 – fubo