找回密码
 注册
搜索
热搜: 回贴
  • 前程无忧官网首页 有什么好的平台可以
  • 最新的销售平台 互联网营销的平台有哪
  • 制作网页的基本流程 网页制作和网页设
  • 【帝国CMS】输出带序号的列表(数字排
  • 网站建设公司 三一,中联,极东泵车的
  • 织梦 建站 织梦网站模版后台怎么更改
  • 云服务官网 哪些网站有免费的简历模板
  • 如何建网站要什么条件 建网站要用什么
  • 吉林市移动公司电话 吉林省退休人员网
  • 设计类毕业论文 网站设计与实现毕业论
查看: 73|回复: 1

[求助]用Javascript取得frame源网页的title

[复制链接]
发表于 2010-1-15 01:38:52 | 显示全部楼层 |阅读模式 IP:江苏扬州
[求助]没有为命令对象设置命令????敬请各位帮帮忙!!!谢谢
没有为命令对象设置命令????敬请各位帮帮忙!!!谢谢
错误类型:
Microsoft JET Database Engine (0x80040E0C)
没有为命令对象设置命令。
/jony/conn.asp, 第 40 行


浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)



代码如下:

<%
dim conn
dim connstr
dim db
'更改数据库名字
db="conn.mdb"
Set conn = Server.CreateObject("ADODB.Connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(""&db&"")
'如果你的服务器采用较老版本Access驱动,请用下面连接方法
'connstr="driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath("db.mdb")
conn.Open connstr

Function CloseDB
conn.close
set conn=nothing
End Function


' if classid="" then
' classid=0
' response.Write"非法操作!没有传递参数!"
' else

dim n,totalrec,currentpage,rowcount,msg_per_page,i
msg_per_page = 12
set rs=server.createobject("adodb.recordset")
'sql=""&sql0&""
rs.cursorlocation = 3 '客户端游标
rs.pagesize = msg_per_page
rs.open,conn,1,3
if rs.eof or rs.bof then
response.Write("<tr><td align='center' colspan='3' height='50'>此系列暂无产品!</td></tr>")
else
if err.number<>0 then
response.write "数据库操作失败:" & err.description
err.clear
else

if not (rs.eof and rs.bof) then '检测记录集是否为空
totalrec = RS.RecordCount 'totalrec:总记录条数
if rs.recordcount mod msg_per_page = 0 then '计算总页数,recordcount:数据的总记录数
n = rs.recordcount\msg_per_page 'n:总页数
else
n = rs.recordcount\msg_per_page+1
end if

currentpage = request("page") 'currentpage:当前页
If currentpage <> "" then
currentpage = cint(currentpage)
if currentpage < 1 then
currentpage = 1
end if
if err.number <> 0 then
err.clear
currentpage = 1
end if
else
currentpage = 1
End if
if currentpage*msg_per_page > totalrec and not((currentpage-1)*msg_per_page < totalrec)then
currentPage=1
end if
rs.absolutepage = currentpage 'absolutepage:设置指针指向某页开头
rowcount = rs.pagesize 'pagesize:设置每一页的数据记录数

do while not rs.eof and rowcount > 0
response.Write("<tr><td align='center' width='33%' valign='bottom'><a href=view.asp?id="&rs("id")&"><img src='"&rs("smallimg")&"' border='0'></a><br>"&rs("model")&"</td>")
rowcount=rowcount-1
rs.movenext
if not rs.eof then
response.Write("<td align='center' width='33%' valign='bottom'><a href=view.asp?id="&rs("id")&"><img src='"&rs("smallimg")&"' border='0'></a><br>"&rs("model")&"</td>")
rowcount=rowcount-1
rs.movenext
end if
if not rs.eof then
response.Write("<td align='center' width='34%' valign='bottom'><a href=view.asp?id="&rs("id")&"><img src='"&rs("smallimg")&"' border='0'></a><br>"&rs("model")&"</td>")
rowcount=rowcount-1
rs.movenext
end if
response.Write("</tr>")
response.Write("<tr><td height='20' colspan='3'><hr size='1' color='#EEEEEE' noshade></td></tr>")
loop
end if
end if

rs.close
set rs=nothing
conn.close
set conn=nothing
end if


%>

---------------
敬请各位帮帮忙!!!谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-30 01:30 , Processed in 0.331337 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表