【发布时间】:2014-01-20 13:16:13
【问题描述】:
我想在我的 asp.net 页面的 headerTemplate 块中隐藏一些行 这是我的 apsx 页面代码:
<HeaderTemplate>
<table class="uk-table uk-table-hover uk-table-striped">
<thead>
<tr>
<th class="uk-width-1-10">numbr 1</th>
<th class="uk-width-1-10">numbr 2</th>
<th class="uk-width-2-10">numbr 3</th>
</tr>
</thead>
<tbody>
</HeaderTemplate>
<ItemTemplate>
...
我决定隐藏 3 号
<HeaderTemplate>
<table class="uk-table uk-table-hover uk-table-striped">
<thead>
<tr>
<th class="uk-width-1-10">numbr 1</th>
<th class="uk-width-1-10">numbr 2</th>
<th class="uk-width-2-10"><asp:Label runat="server" ID="tdInfoHeader" Visible="true">numbr 3</asp:Label></th>
</tr>
</thead>
<tbody>
</HeaderTemplate>
<ItemTemplate>
...
但是在我的 C# 代码部分,我无法更改 tdInfoHeader.visible =false,我怎么能在我的 C# 部分隐藏数字 3?
【问题讨论】: