给Repeater添加FooterTemplate,数据为空时,显示提示信息。
<FooterTemplate>
<tr style="color:Red; font-size:18px;" runat="server" Visible="<%#rpt.Items.Count==0 %>" ><td colspan="8">没有您要搜索的数据</td>
</tr>
</FooterTemplate>
给Repeater添加FooterTemplate,数据为空时,显示提示信息。
<FooterTemplate>
<tr style="color:Red; font-size:18px;" runat="server" Visible="<%#rpt.Items.Count==0 %>" ><td colspan="8">没有您要搜索的数据</td>
</tr>
</FooterTemplate>
转载于:https://www.cnblogs.com/sanic/archive/2011/08/30/2159874.html