关于地址栏参数
我有一段代码如下:<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<!-- #include file="config/db.asp" -->
<%
if request.QueryString("page")="" then
page=1
else
page=request.QueryString("page")
end if
pagelistnum=2
set rst=server.CreateObject("ADODB.recordset")
sql="select count(*) as num from tbl_user"
rst.open sql,conn,1,1
znum=rst("num")
zpage=znum\pagelistnum
if znum mod pagelistnum<>0 then zpage=zpage+1
if page<zpage then
response.Write page & "<br>"
response.Write zpage & "<br>"
response.Write "aaa"
else
response.Write page & "<br>"
response.Write zpage & "<br>"
response.Write "bbb"
end if
set rst=nothing
conn.close
set conn=nothing
%>
</body>
</html>
我的zpage=5,但只要加了地址栏参数,如test.asp?page=1,page<zpage的判断就不成立,输出:
1
5
bbb
这是什么原因啊?