日期:2014-05-18 浏览次数:20459 次
<table width=100 align=center border="0" cellpadding="0" cellspacing="0" bgcolor="#EBFEFE"> <tr> <td width=100% colspan="2"> <asp:GridView ID="FileView" SkinID=FileList runat="server" Width="600px" AllowPaging="True" ShowFooter="false" PageSize=2 > <PagerSettings Visible="False" /> <Columns> <asp:TemplateField HeaderText="附件列表"> <ItemTemplate> <%# DataBinder.Eval(Container.DataItem,"FILENAME")%> </ItemTemplate> <ItemStyle HorizontalAlign="Left" Width="90%" /> <HeaderStyle Font-Bold="True" Font-Size="10pt" Height="28px" HorizontalAlign="Left" /> </asp:TemplateField> <asp:TemplateField ShowHeader="False"> <ItemTemplate> <asp:HyperLink ID="HyperLink_Down" runat="server" Visible=false NavigateUrl='<%# "Down.aspx?FileID=" + DataBinder.Eval(Container.DataItem,"FILEID")%>'> 下载 </asp:HyperLink> </ItemTemplate> <ItemStyle HorizontalAlign="Left" Width="10%" /> </asp:TemplateField> </Columns> </asp:GridView> </td> </tr> <tr> <td align="center" height="28" valign=middle> <asp:LinkButton ID="lnkbtnFirst" runat="server" OnClick="lnkbtnFirst_Click">首页</asp:LinkButton> <asp:LinkButton ID="lnkbtnPrev" runat="server" OnClick="lnkbtnPrev_Click">上一页</asp:LinkButton> <asp:LinkButton ID="lnkbtnNext" runat="server" OnClick="lnkbtnNext_Click">下一页</asp:LinkButton> <asp:LinkButton ID="lnkbtnLast" runat="server" OnClick="lnkbtnLast_Click">尾页</asp:LinkButton> <asp:Label ID="lbCurrentPage" runat="server"></asp:Label> <asp:Label ID="lbPageCount" runat="server"></asp:Label> <asp:Label ID="lbTaskCount" runat="server"></asp:Label> 跳转到第 <asp:DropDownList ID="ddlCurrentPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="SelectedIndexChanged"> </asp:DropDownList> 页 </td> </tr> </table>