Repeater 隐藏空数据列
我遇到这样一个问题,望各位前辈能给于帮助.
我Repeater中读取一张表,.该表是这这样的有些字段有数值.而有些没有.
字段一 , 字段二 , 字段三 , 字段四 , 字段五 , 条件字段
aaa 字段一
aaa bbb 字段一 , 字段二
aaa bbb ccc 字段一 , 字段二 , 字段三
aaa bbb ccc ddd 字段一 , 字段二 , 字段三 , 字段四
aaa bbb ccc ddd eee 字段一 , 字段二 , 字段三 , 字段四 , 字段五
select * from 表 where 条件字段 = 读取的字符串的数值.现在是这样当我按条件读取之后, 没有数据的列(itemplate)我能够让其隐藏显示.但是表头和表尾,我还不知道如何隐藏,网大家指教,当然有数据的列表头和表尾就得显示
<asp:Reapter>
<Headertemplate>
<table>
<tr>
<td>
</td>
</tr>
</Headertemplate>
<itemplate>
<tr>
<td>
<asp:textbox ID="" Runat="server"/>
</td>
</tr>
</itemplate>
<footemplate>
<tr>
<td>
<asp:textbox ID="" Runat="server"/>
</td>
</tr>
</table>
<footemplate>
</asp:Reapter>