asp 代码帮我看一下

来源:百度知道 编辑:UC知道 时间:2024/06/08 12:54:29
<%'content为文章内容
content=request("content")
content="第一页内容|||第二页内容|||第三页内容|||第四页内容|||第五页内容"
if request.querystring("page")="" then
pagenum=0
else
pagenum=request.querystring("page")
end if
contentstr=split(content,"|||")
for i=pagenum to pagenum
response.write contentstr(i)
next%>
</td>
</tr>
<%if ubound(contentstr)>=1 then%>
<tr>
<td align="center">本文共分
<%for p=0 to ubound(contentStr)
if p+1=request.querystring("page")+1 then
a="<font color=""red"">"
aa="</font>"
else
a=""
aa=""
end if
%>
<a href="?page=<%=p%>"><%=a%><%=p+1%><%=aa%></a>
<%next%>
页</td>

你都没输出content .当然不会有

if request.querystring("page")="" then
pagenum=0
else
pagenum=request.querystring("page")
end if
改成
if request("page")="" then
pagenum=0
else
pagenum=request("page")
end if
试一下..大概看一下.没看出来有什么毛病..改一下试试.另外.提示什么错误写一下.

<%'content为文章内容
content="第一页内容|||第二页内容|||第三页内容|||第四页内容|||第五页内容"
if request("page")="" then
pagenum=0
else
pagenum=request("page")
end if
contentstr=split(content,"|||")
response.write contentstr(pagenum)
%>
</td>

</tr>
<%if ubound(contentstr)>=1 then%>
<tr>
<td align="center">本文共分
<%for p=0 to ubound(contentStr)
if p+1=request.querystring("page")+1 then
a="<font color=""red"&