预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共17页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

asp分页代码是什么ASP即ActiveServerPages,是MicroSOft公司开发的服务器端脚本环境,可用来创建动态交互式网页并建立强大的web应用程序。下面就由yjbys小编给大家介绍ASP分页代码。用这一句调用:callPageControl(iCount,maxpage,page,"border=0align=right","",per_page)%>SubPageControl(iCount,pagecount,page,table_style,font_style,per_page)'生成上一页下一页链接Dimquery,a,x,tempaction="http://"&Request.ServerVariables("HTTP_HOST")&Request.ServerVariables("SCRIPT_NAME")temp=""Response.Write(""&vbCrLf)Response.Write(""&vbCrLf)Response.Write(""&vbCrLf)Response.Write(font_style&vbCrLf)ifpageResponse.Write("首页"&vbCrLf)Response.Write("上页"&vbCrLf)elseResponse.Write("首页"&vbCrLf)Response.Write("上页"&vbCrLf)endififpage>=pagecountthenResponse.Write("下页"&vbCrLf)Response.Write("尾页"&vbCrLf)elseResponse.Write("下页"&vbCrLf)Response.Write("尾页"&vbCrLf)endifResponse.Write("页次:"&page&"/"&pageCount&"页"&vbCrLf)Response.Write("共有"&iCount&"条/每页"&per_page&"条"&vbCrLf)Response.Write("转到"&""&"页"&vbCrLf&"Response.Write(""&vbCrLf)Response.Write(""&vbCrLf)Response.Write(""&vbCrLf)EndSub%>读取数据库代码:iftab_recall_tga="1"theno_zid=zidzid=tab_recall_cd(0)subt_where="wherenewtype='"&tab_recall_cd(1)&"'"endifi=0exec="selectnewsname,adddate,newsid,imgurl,summaryfromMlist_"&zid&subt_where&"orderbyadddatedesc"setrs=server.CreateObject("adodb.recordset")rs.openexec,conn,1,1ifrs.eofandrs.bofthenresponse.write"目前还没有任何数据"elsers.PageSize=5'每页记录条数iCount=rs.RecordCount'记录总数iPageSize=rs.PageSizemaxpage=rs.PageCountpage=request("page")per_page=rs.PageSizeifNotIsNumeric(page)orpage=""thenpage=1elsepage=cint(page)endififpagepage=1elseifpage>maxpagethenpage=maxpageendifrs.AbsolutePage=Pageifpage=maxpagethenx=iCount-(maxpage-1)*iPageSizeelsex=iPageSizeendifFori=1Toxifrs("newtype")=0thenshow_type=""elseshow_type=""endifuimg="0"imgurl=trim(rs("imgurl"))iflen(imgurl)>0thenuimg="1"ifuimg"1"thenimgurl="img/no.jpg"%>"alt=""width="174"height="91"border="0">  发布时间: &id=">详细>>nextendifrs.closesetrs=nothingiftab_recall_tga="1"thenzid=o_zid'重新恢复虚拟定向表%>插入代码:exec="insertintoAdmin(user_id,user_pwd,lev)values('"&o