分页码前台代码

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Pages.ascx.cs" Inherits="manage.Controls.Pages" %>

<table border="1" width="100%" height="30px" style="margin:0px">
<tr><td style="width: 89%"><%=GetPage(this.CurrentPage+1, this.PageSize, this.NumCount, this.Request.Url.ToString())%></td><td style="width: 30%">
    <input type="text" id="Pages1_TbPageGo"  onKeyUp="this.value=this.value.replace(/[^\d]+/,'')" style="width: 33px"/>
    <input id="BtGo" style="width: 34px" type="button" value="GO" onClick="document.location.href=document.location.href.indexOf('page=')>=0?(document.location.href.replace(/page=([^&]*)/,'page='+document.getElementById('Pages1_TbPageGo').value)):(document.location.href.indexOf('?')>=0?(document.location.href+'&page='+document.getElementById('Pages1_TbPageGo').value):(document.location.href+'?page='+document.getElementById('Pages1_TbPageGo').value))"/></td></tr>
</table>

你可能感兴趣的:(分页)