遇上职业打假人索赔500:请教ASP问题 急!谢谢

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/01 05:35:01
if
dim totalPut
dim CurrentPage, TotalPages
if not isempty(request("page")) then
currentPage=cint(request("page"))
else
currentPage=1
end if
什么意思呢?
能具体点么?
谢谢

if '如果XX但是是错误码的。应该为(if 条件 then )
dim totalPut '定义totalPut
dim CurrentPage, TotalPages '定义
if not isempty(request("page")) then '如果页面返回page这个值不为空 那么
currentPage=cint(request("page")) '刚才定义的currentpage就等于返回的值
else '相反
currentPage=1 '这个值等于1
end if
简单的说。这应该是个分页函数的一小部分。
如果有返回页面就在基础上做加/减,也就是上一页或下一页