我想适当加些代码,用以下功能代码写一个web分页控件。希望大虾们帮帮我啊!
这是一个简单的分页代码:
aspx:
<table width= "100% ">
<tr>
<td width= "100% " style= "text-align: right ">
<span style= "font-size: 10pt "> 总共: </span> <asp:Label ID= "lblRecordCount " runat= "server "
ForeColor= "red "> </asp:Label> 条记录 当前: <asp:Label ID= "lblCurrentPage " runat= "server "
ForeColor= "Red "> </asp:Label> / <asp:Label ID= "lblPageCount " runat= "server " ForeColor= "Red "> </asp:Label> 页
转到: <asp:DropDownList ID= "Ddl_PageNumber " runat= "server " AutoPostBack= "true "
CssClass= "lanyu ">
</asp:DropDownList> 页
<asp:LinkButton ID= "BtnFirst " runat= "server " CommandName= "First " Font-Size= "10pt "
OnCommand= "Page_OnClick " Text= "首页 "> 首页 </asp:LinkButton>
<asp:LinkButton ID= "lbnPrevPage " runat= "server " CommandName= "prev " Font-Size= "10pt "
OnCommand= "Page_OnClick " Text= "上一页 "> </asp:LinkButton>
<asp:LinkButton ID= "lbnNextPage " runat= "server " CommandName= "next " Font-Size= "10pt "