!!!!!!!!!!!!问题 问题 问题 问题 问题!!!!!!!

heejun521 2004-07-27 01:34:06
有个问题:

chaxun1.asp:

set test=server.CreateObject ("SearchLDAP.searcher")//创建test对象
test.Host =host //初始化
test.Port = port //初始化
test.AddAttrs ("usercertificate;binary") //初始化
test.Attrsonly = "0" //初始化
test.BaseDN = tj //初始化
test.Filter = "ObjectClass=*" //初始化


x = test.Search(1000) //搜索的纪录条数,期望最多1000条

for i=0 to 20
cn=test.GetDN (i) //调用
cert=test.GetContent (i)
response.Write "<a href=chaxun2.asp?cert="&Server.URLEncode(cert)&">"&cn&"</a><br><br>"
next


chaxun2.asp:

//将cert写入文件
cert=request("cert")
whichfile=server.mappath("User.cer")
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile = fso.CreateTextFile(whichfile,True)
MyFile.WriteLine cert

MyFile.Close

我现在想在chaxun1.asp上作个上下翻页 应该怎么做?
没页20条纪录!
...全文
106 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
Cuilian521 2004-07-27
  • 打赏
  • 举报
回复
????
Cuilian521 2004-07-27
  • 打赏
  • 举报
回复
????
Cuilian521 2004-07-27
  • 打赏
  • 举报
回复
我这种 不是从数据库艘的,是自己写的com组件,返回2个值,如果把他们都放到数组里应该怎么分?
ghy412 2004-07-27
  • 打赏
  • 举报
回复
分页的方法很多,你的这种我看不懂:(
帮你顶一下
Cuilian521 2004-07-27
  • 打赏
  • 举报
回复
分不够可在加!!
heejun521 2004-07-27
  • 打赏
  • 举报
回复
帮帮忙!
heejun521 2004-07-27
  • 打赏
  • 举报
回复
????
heejun521 2004-07-27
  • 打赏
  • 举报
回复
有人在马??

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧