复制代码 代码如下:
<div >
<div>
<div><span>即将过期账册提醒>></span></div>
<div>
<asp:ScriptManager runat="server">
</asp:ScriptManager>
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp:Repeater runat="server">
<HeaderTemplate>
<table cellpadding="0" cellspacing="0">
<tr>
<td>账册名称</td>
<td>经营单位</td>
<td>距过期天数</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><%# DataBinder.Eval(Container.DataItem, "ems_no")%></td>
<td><%# DataBinder.Eval(Container.DataItem, "TRADE_NAME")%></td>
<td><%# DataBinder.Eval(Container.DataItem, "days")%></td>
</tr>
</ItemTemplate>
<%--AlternatingItemTemplate描述交替输出行的另一种外观--%>
<AlternatingItemTemplate>
<tr bgcolor="#e8e8e8">
<td><%# DataBinder.Eval(Container.DataItem, "ems_no")%></td>
<td><%# DataBinder.Eval(Container.DataItem, "TRADE_NAME")%></td>
<td><%# DataBinder.Eval(Container.DataItem, "days")%></td>
</tr>
</AlternatingItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
<div>
<asp:LinkButton runat="server" CommandArgument="F" OnCommand="lbPage_Command">首页</asp:LinkButton>
<asp:LinkButton runat="server" CommandArgument="P" OnCommand="lbPage_Command">上页</asp:LinkButton>
<asp:LinkButton runat="server" CommandArgument="N" OnCommand="lbPage_Command">下页</asp:LinkButton>
<asp:LinkButton runat="server" CommandArgument="L" OnCommand="lbPage_Command">末页</asp:LinkButton>
<asp:Label runat="server" Text="Label"></asp:Label>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
</div>
分页类
复制代码 代码如下: