Repeater添加类似空模板的简单解决方法

给Repeater添加FooterTemplate,数据为空时,显示提示信息。

<FooterTemplate>
<tr style="color:Red; font-size:18px;" runat="server" Visible="<%#rpt.Items.Count==0 %>"  >

<td colspan="8">没有您要搜索的数据</td>

</tr>
</FooterTemplate>

posted on 2011-08-30 18:06  Sanic  阅读(421)  评论(1编辑  收藏  举报

导航