您的位置:程序门 -> web 开发 -> asp



asp长文章分页,看不出错在哪儿了


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


asp长文章分页,看不出错在哪儿了[无满意答案结贴]
发表于:2008-01-17 09:52:20 楼主
显示不出文章内容来
数据已经读出
<%
if   request("page")=""   then
pagenum=0

else
pagenum=request("page")
end   if
content=replace((unhtml(rs("content")))," ¦ ¦ ¦","  ¦ ¦ ¦ ")
contentstr=split(content," ¦ ¦ ¦")

for   i=pagenum   to   pagenum
%>
<div   id="content"> <%=contentstr%>
<%   next   %>
<%
for   p=0   to   ubound(contentstr)
%>  
<a   href="news__detail.asp?id= <%=id%> &cate= <%=cate%> &page= <%=p%> "   class=""> <%=p+1%> </a>
<%   next   %> 页

网上找的代码改的,求达人指点
发表于:2008-01-17 10:00:541楼 得分:0
自己解决了
<div       id="content">   <%=contentstr%>  
改成
<div       id="content">   <%=contentstr(i)%>  
打完收工


快速检索

最新资讯
热门点击