一个调用相同页面传参啊

xjxb21 xjxb21 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<!--#include file="../asp/testserch.asp"-->
<!--#include file="../asp/getproperty.asp"-->
<!--#include file="../Artist/init_news.asp"-->
<%
dim pnow
pnow=request("pnow")
%>
<title>无标题文档</title>
</head>

<body style="margin:0px">
<table width="763" border="0" cellpadding="0" cellspacing="0" align="center">
<!--DWLayoutTable-->
<tr>
<td width="347" rowspan="2" valign="top">
<%
dim i
for i=(pnow*3-3) to (i+2) '参数2表示每页显示3=(2+1)条新闻记录
response.Write i
%>
<%next%>
</td>
<td width="416" height="56"> </td>
</tr>
<tr>
<td height="379" valign="top" background="/Pictures/Introduction_Back.jpg"><!--DWLayoutEmptyCell--> </td>
</tr>


<tr>
<td height="29" colspan="2" valign="top">
<!--设置每页显示 3 条新闻信息-->

<a>第 <% response.Write cstr(pnow) %> 页</a>

<a>共 <% response.Write Cint(page_count/3) %> 页</a>

<a href="/Artist/news.asp?pnow=1">首页</a>

<a>上一页</a>

<a href="/Artist/news.asp?pnow=<%=pnow+1%>">下一页</a>

<a>尾页</a>
</td>
</tr>
</table>
</body>
</html>




dim i
for i=(pnow*3-3) to (i+2) '参数2表示每页显示3=(2+1)条新闻记录
response.Write i

假如我传入的参数pnow初始化为1,这句语句出现的结果是正确的,如果我把点击“下一页”的时候。就没有显示了呢?也不报错, 我相信 <!--#include file="../asp/testserch.asp"-->
<!--#include file="../asp/getproperty.asp"--><!--#include file="../Artist/init_news.asp"-->是没有问题的,

大虾救命啊!~~一定要救我

...全文
评论 13
收藏 已收藏
分享
返回顶部
xjxb21
ASP 28,401 成员 356,940 内容