谁帮我处理下这段asp代码

来源:百度知道 编辑:UC知道 时间:2024/06/21 17:48:30
我做了个跳转效果可是怎么不行代码帮我整理下
<%
End Sub

Function showpage(totalnumber,maxperpage,filename)
Dim n

If totalnumber Mod maxperpage=0 Then
n= totalnumber \ maxperpage
Else
n= totalnumber \ maxperpage+1
End If

Response.Write "<form method=Post action="&filename&">"
Response.Write "<p align='center' class='contents'> "
If CurrentPage<2 Then
Response.Write "<font class='contents'>[Home]   Last</font> "
Else
Response.Write "<a href="&filename&"?lx=small&anid="&anclassid&"&nid="&nclassid&"&page=1 class='contents'>[Home]</a> "
Response.Write "   <a href="&filename&"?lx=small&anid="&anclassid&&q

提示你说在跳转页面后,查询数据库的时候条件语句'anclassid='没有获取到值

<a href="&filename&"?lx=small&anid="&anclassid&"&nid="&nclassid&"&page=1 class='contents'>[Home]</a>

你这里是anid="&anclassid&"
不知道你下一个页面是否读取anid后再拿去查询。
你贴一下你数据库查询语句出来,顺便贴一下你获取anid值的语句