asp分页后点击下一页无法运行问题!高手请进
baobu 2005-04-25 03:09:19 从数据库中搜索数据并进行分页后,第一页能够正常运行,但点击下一页以及按照用户输入的页数运行出错,以下为相关代码:
<%if Current_Page<>1 then response.write "<a href='1_1.asp?ToPage="¤t_Page- 1&"&accord="&accord&"&cha="&cha&"'>上一页</a> "
if Current_Page<>RS.PageCount then response.write "<a href='1_1.asp?ToPage="¤t_Page+1&"&accord="&accord&"&cha="&cha&"'>下一页</a>"
%>
<form action=1_1.asp method="post">转到第
<input type="text" name="topage" style="height:15px; width:25px" value=<%=CurrentPage%>>
页<input type="submit" value="GO"></form>
在前面有两个变量accord和cha ,其值是根据上个页面用户的操作控制的,第一次取得其值的代码为:
cha=request("zhang")
accord=request("tixing")
进行"下一页"等操作后,个人认为其值变空以至不能正常运行,请问有何解决办法?