ASP不能分页查询

来源:百度知道 编辑:UC知道 时间:2024/06/06 18:16:52
function getcookie(Name)
{
var searchx = Name+"=" //searchx= 'popped='
var returnvalue = "";
if (document.cookie.length > 0)
{
offset = document.cookie.indexOf(searchx);
//alert(offset);

if (offset != -1) //存在popped=字符串:-1不存在
{
offset += searchx.length ;
end = document.cookie.indexOf(";",offset);
if (end == -1)
end = document.cookie.length;

returnvalue=decodeURIComponent(document.cookie.substring(offset,

end)) ;
//alert(returnvalue); //yes
}

}
return returnvalue;
}

function loadpopup()
{
if (getcookie('popped')=='')
{
popwin();
document.cookie="popped=yes" ;
}
}

function popwin()
{
var s1=showModelessDialog('roleplay/news.htm',"nwi

建立access的数据库news,还有表news,表的字段(id,title),id唯一,输入数据保存,用下面代码可查询,可分页
-----------------------下面保存为search.asp--------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>文件</title>
</head>
<body bgcolor="#ffffff">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<script>
function btn_ck_bh_Click()
{
var cx = document.form1.cxsj.value;
form1.action ="search.asp?cx="+cx;
}
</script>
<table border="1" cellspacing="0" bgcolor="#F0F8FF" bordercolorlight="#4DA6FF" bordercolordark="#ECF5FF" width="88%" style="word-break:break-all">
<tr>
<td width="778" align="center" colspan="7">
<form me