私はリピーターを持っています。そして私は特定の条件のために特定の列を隠して表示したい。私は3種類の主題を持ち、そのidはそれぞれ0,1,2です。リピータの特定の列を表示して非表示にしますか?
<table id="table1" class="yui" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th>
<a href='#' title="Click Header to Sort">EmpID #</a>
</th>
<th>Edit</th>
</tr>
</thead>
<tbody>
<asp:Repeater ID="Repaddressorbbl" runat="server" OnItemCommand="Repaddressorbbl_ItemCommand">
<ItemTemplate>
<tr id="gh" style="cursor: pointer" onclick="Select(this);">
<td style="text-align: center;">
<%#Eval("empid")%>
</td>
<td>
<asp:LinkButton ID="lknumber" runat="server" Text="Edit" CommandName="subjectid" />
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</tbody>
<tfoot>
</tfoot>
</table>
チェックこの1:http://stackoverflow.com/questions/6051483/is-it-possible-to-hide-a-column-in-an-asprepeater私もこれをしたい –