谁给个asp分页程序?本人急用!!!

来源:百度知道 编辑:UC知道 时间:2024/06/18 09:19:37
要求是这样的:首页 前十页 上一页 [1 2 3 4 5] 下一页 后十页 尾页
那个1 2 3 4 5是显示五页的意思!!!!!
忘记了,后面还要加上:“转到第 X 页”

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>分页标准模块</title>
<style type="text/css">
<!--
body,td,tr {font-size: 12px;}
.STYLE1 {color: #FFFFFF;font-weight: bold;}
.STYLE2 {color: #FFFFFF}
-->
</style>

<script language="javascript">
function abc(form1){
if(form1.page.value==""){
alert("不能为空!");
form1.page.focus();
return false;
}
}
</script>

</head>
<body>

<!--#include file="conn.asp"-->

<%
if request.QueryString("page")="" then'如果获取到的page为空的话那么
page=1'给page赋值
else'否则