sql="select * from baoxiu where paidan_name like '%" & xingming & "%' and baoxiu_date between #"&date1&"# and #"&date2&"# order by baoxiu_date desc"
Set rs= Server.CreateObject("ADODB.Recordset")
<%
if session("date1")<>"" and session("date2")<>"" then
date1=session("date1")
date2=session("date2")
else
date1=year(date)&"-"&month(date)&"-1"
date2=year(date)&"-"&month(date)&"-"&day(date)+1
end if
%>
日期:
<input name="baoxiu_date1" type="text" id="baoxiu_date1" size="20" value="<%=date1%>" onFocus="setday(this)" readonly>
至
<input name="baoxiu_date2" type="text" id="baoxiu_date2" onFocus="setday(this)" value="<%=date2%>" size="20" readonly>作者: 惠儿雨点 时间: 2010-1-10 03:55
date1=request("baoxiu_date1")
date2=request("baoxiu_date2")
这里改一下试试看
IF request("baoxiu_date1")<>"" And request("baoxiu_date2")<>"" Then
date1=request("baoxiu_date1")
date2=request("baoxiu_date2")
End IF
IF request("date1")<>"" And request("date2")<>"" Then
date1=request("date1")
date2=request("date2")
End IF作者: 夜神君 时间: 2010-1-10 03:55
下一页就有问题,能分页出来但点后就有问题
Pama="&paidan_name="&xingming&"&date1="&date1&"&date2="&date2&""
翻页后的地址是:http://192.168.1.110/baoxiu_guanli.asp?Page=2&paidan_name=周伟&date1=2008-04-27&date2=2008-06-07
以上传递的参数正确吗作者: 小飞俠 时间: 2010-1-10 03:55
dim xingming,date1,date2
xingming=request("paidan_name")
date1=request("baoxiu_date1")
date2=request("baoxiu_date2")
Sql="select * from baoxiu where paidan_name like '%" & xingming & "%' and baoxiu_date between #"&date1&"# and #"&date2&"# order by baoxiu_date desc"
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
dim Pama_1
Pama_1="&paidan_name="&xingming&"&date1="&date1&"&date2="&date2&""作者: ︶ぺ雨湮ㄣ 时间: 2010-1-10 03:55
根据楼主所说,翻页后应该是带上了查询参数,楼主第几页出现的这种情况?