Dim ReJycp
Sub jycp
'经营产品程序
pro2sql="select * from jycp where userid="&id&" order by istop desc,id desc "
Set pro2RS=Server.CreateObject("ADODB.Recordset")
pro2RS.Open pro2SQL,Conn,3,1
const MaxPerPage=25
Dim text,checkpage
text="0123456789"
pro2Rs.PageSize=MaxPerPage
For i=1 to len(request("page"))
checkpage=instr(1,text,mid(request("page"),i,1))
IF checkpage=0 then
Exit for
End if
Next
If checkpage<>0 then
If NOT IsEmpty(request("page")) Then
CurrentPage=Cint(request("page"))
If CurrentPage < 1 Then CurrentPage = 1
If CurrentPage > pro2Rs.PageCount Then CurrentPage = pro2Rs.PageCount
Else
CurrentPage= 1
End If
If not pro2Rs.eof Then
pro2Rs.AbsolutePage = CurrentPage
End if
Else
CurrentPage=1
End if
If pro2rs.eof and pro2rs.bof then
response.write "<p align=center><font color=#ff0000>还没任何商品资料</font></p>"
End If
Do While Not pro2rs.eof
ReJycp=ReJycp&"<table width=100% border=0 align=center cellpadding=2 cellspacing=1 ID=Table1><tr><td width=48% bgcolor=#EBEBEB>"
ReJycp=ReJycp&" <a href=zi_jycpxx.asp?ssid="&pro2rs("id")&"&id="&id&" target=_blank><img src="&pro2rs("pic")&"border=0></a>"
ReJycp=ReJycp&"</td><td width=52% bgcolor=#EBEBEB><div align=center><a href=zi_jycpxx.asp?ssid="&pro2rs("id")&"&id="&id&" target=_blank>"
ReJycp=ReJycp&pro2rs("title")&"</a></div></td></tr></table>"
pro2rs.movenext
Loop
ReJycp=ReJycp&"<font color='#000000'>页面-> </font>"
IF currentpage > 1 Then
ReJycp=ReJycp&"<a href=?&page="+cstr(1)+"><font color='#000000'>首页</font></a><font color='#000000'><b>-</b></font>"
ReJycp=ReJycp&"<a href=?page="+Cstr(currentpage-1)+"><font color='#000000'>前页</font></a><font color='#000000'><b>-</b></font>"
Else
ReJycp=ReJycp&"<font color='#000000'>首页-</font>"
ReJycp=ReJycp&"<font color='#000000'>前页-</font>'"
End IF
IF currentpage < pro2Rs.PageCount Then
ReJycp=ReJycp&"<a href=?page="&Cstr(currentPage+1)&"><font color='#000000'>后页</font></a><font color='#000000'><b>-</b>"
ReJycp=ReJycp&"</font>"
ReJycp=ReJycp&"<a href='?page="&Cstr(pro2Rs.PageCount)&" ><font color='#000000'>尾页</font></a> "
Else
ReJycp=ReJycp&"<font color='#000000'>后页-</font>"
ReJycp=ReJycp&"<font color='#000000'>尾页</font> "
End if
ReJycp=ReJycp&"<font color=#000000>页次:</font>" & "<font color=#FF0000>"&Cstr(Currentpage)&"</font><font color='#000000'>/ "
ReJycp=ReJycp&Cstr(pro2rs.pagecount)&"</font> "
ReJycp=ReJycp&"<font color=#ff0000>"&Cstr(MaxPerPage)&"</font><font color='#000000'>种商品/页  共</font>"
ReJycp=ReJycp&" <font color=#FF0000> "&Cstr(pro2Rs.RecordCount) &" </font>" & "<font color='#000000'>种商品</font> ")
'调用经营产品程序
End sub
这样写试试看。