拟人机器人:asp分页问题.大家帮我个忙啊.

来源:百度文库 编辑:神马品牌网 时间:2024/05/05 22:02:24
<%
response.write" 当前第 <font color=red>"&CurPage&"</font>/<font color=red>"&TotalPages&"</font> 页"
response.write" <a href='"&aspname&"CurPage=1'><font color=#000000>首页</font></a>"

if CurPage<>1 then
response.write" <a href="&aspname&"CurPage="&CurPage-1&">上页</a>"
else
response.write" <font color=#999999>上页</font>"
end if

if CurPage<TotalPages then
response.write" <a href="&aspname&"CurPage="&CurPage+1&">下页</a>"
else
response.write" <font color=#999999>下页</font>"
end if

response.write" <a href='"&aspname&"CurPage="&TotalPages&"'><font color=#000000>末页</font></a> 共 "&TotalPages&" 页"

%>

加入到第几页应该则么加啊。谢谢回答

response.write "<select onchange=""window.location='"&aspname&"CurPage='+this.value;"">"
for i = 1 to TotalPages
response.write "<option value='"&i&"'>"&i
next
response.write "</select>"