<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCPager.ascx.cs" Inherits="CY.WebForm.Pages.common.UCPager" %>
|
<script type="text/javascript">
|
|
|
var oldReLoad = window.ReLoad ;
|
|
window.ReLoad= function () {
|
var pageIndex=<%=AspNetPager1.CurrentPageIndex %>;
|
// if(pageIndex>1)
|
// {
|
__doPostBack('UCPager1$AspNetPager1', '<%=AspNetPager1.CurrentPageIndex %>')
|
// }
|
// else
|
// {
|
// oldReLoad();
|
// }
|
|
}
|
|
$(
|
function()
|
{
|
var newDiv=$("<div class='CB'></div>");
|
$("#UCPager1_AspNetPager1").append(newDiv);
|
$("#page").find('.paginator').find('.paginator').first().css("text-align","right").css("line-height","25px");
|
$("#page").find('.paginator').first().css("float","right");
|
}
|
);
|
|
</script>
|
<div id="page">
|
<webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonPosition="Center" CustomInfoHTML="共<font style='font-size:13'>%RecordCount%</font>条" ShowCustomInfoSection="Left" Width="100%" CustomInfoSectionWidth="100px" PageIndexBoxType="TextBox" ShowPageIndexBox="Always" SubmitButtonText="Go" TextAfterPageIndexBox="页" AlwaysShow="true" TextBeforePageIndexBox="转到" PrevPageText="上一页" NextPageText="下一页" FirstPageText="首页" LastPageText="末页" PageSize="25" CurrentPageIndex="1">
|
</webdiyer:AspNetPager>
|
<div class="CB"></div>
|
</div>
|