日期:2014-05-17  浏览次数:20423 次

求一个 jquery 无刷新分页例子 asp.net
求一个 jquery 无刷新分页例子 用 asp.net 做的
网上很多都是用 table 做的,用 li 分页的 没找到,
谁能给个demo 不胜感激

<li><a href="newscontent.html" title="2012年4月17签约">公司签约 <span class="date">2012-4-20</span></a>
<p class="intro">012年4月17号,咨询规划服务</p>
</li>

是这样的

------解决方案--------------------
网上很多
表格和li有什么关系
不就是布局不一样么 实现的思路和代码是一样的啊
------解决方案--------------------

http://www.cnblogs.com/zhongweiv/archive/2011/10/31/JqueryPagination.html
------解决方案--------------------
你加我QQ我帮你写一个.使用table分页,使用jquery晚上代码分页吗?
------解决方案--------------------
740303282 我的QQ帮你写一个
------解决方案--------------------
html代码


<div class="tbl-box">
<div id="tftable">
</div>
</div>
<div style="display:none;" class="pagelist" style="margin-top: 6px;">
<span id="spanPageinfo1" ></span>
<p class="fl">
<span class="pre" style="cursor: hand" onclick="FirstPage()"></span><span style="cursor: hand" class="pre1" onclick="OnPage()" >
</span><span>共<span id="spanAllRowS"></span>行&nbsp;第<span id="spanPageIndex1"></span>页&nbsp;第&nbsp;<span
id="spanStartRows"></span>-<span id="spanEndRows"></span> 行&nbsp;</span><span style="cursor: hand"
class="next" onclick="NextPage()" ></span><span style="cursor: hand" class="next1" onclick="LastPage()"></span></p>
</div>

<script >

gettableinfor(1);
var pageIndex = 1;

function gettableinfor(pageto)
{
$("#add_user").attr("disabled", "");
$("#a1").attr("disabled", "");
if('<%=accountids.ToString() %>'!=""){
$("#tftable").html("<table width='100%' border='0' cellspacing='0' cellpadding='0' class='tbl-Ttop-border'><tr><td colspan='16' style='text-align:center;'>获取数据中!</td></tr></table>");
var txtboxe=$("#txtsele").val(); 
$("#spanStartRows").html("1"); //开始行
$("#spanEndRows").html("1"); //结束行
$("#spanPageIndex1").html("1"); //当前页
var pagesize=20;
if(pageto==0){
pageIndex = 1;
}else
{
pageIndex=pageto;
}
var text=Web3._0.PreventMaliciousclicks.pmcIPRuledOut.Get_Infor_table('<%=accountids.ToString() %>',txtboxe,pagesize,pageIndex);
var infos = text.value.split("$$$");
count=Number(infos[1]);

if(pageto == 1) 
{
$("#spanStartRows").html(1); //开始行
if(Number(infos[1])<=20){
$("#spanEndRows").html(infos[1]); //结束行
}else
{
$("#spanEndRows").html(20); //结束行
}