% dim exec, rs, page, recordcount dim rs1, pagecount, strpageList rem strpagelist是分页显示的字符串 dim topNum if theUser.master then exec="select top 1 privateNum from const" else exec="select top 1 privateNum from blyh where name='"& theUser.name &"' " end if set rs=conn.execute(exec) RecordCount=rs(0) rs.close page=encodestr(Request.querystring("page")) if page="" or not isNumeric(page) then page=1 else page=int(page) end if pageCount=RecordCount/rcPerPage pageCount=int(pageCount) if (RecordCount mod rcPerPage)>0 then PageCount=PageCount +1 end if if page>pageCount then page=pageCount end if %>