asp制作网页上一篇,下一篇时报缺少对象错如何解决 5
<%ID=request("id")a1=detailrec("id")sql="selecttop1*fromdbo.bdsznewstbwhereid<"&a1&"o...
<%
ID=request("id")
a1=detailrec("id")
sql="select top 1 * from dbo.bdsznewstb where id<"&a1&" order by id desc"
(这是105行)detailrec = bdszconn.Execute(sql)
if detailrec.eof then
response.Write "上一篇:没有文章了"
else
a0=backrsd("id")
response.Write "上一篇:<a href='detailpage.asp?id="&a0&"'>"&detailrec("title")&"</a>"
end if
%>
Microsoft VBScript 编译器错误 错误 '800a03f6'
缺少 'End'
/iisHelp/common/500-100.asp,行242
Microsoft VBScript 运行时错误 错误 '800a01a8'
缺少对象: ''
/detailpage.asp,行105 展开
ID=request("id")
a1=detailrec("id")
sql="select top 1 * from dbo.bdsznewstb where id<"&a1&" order by id desc"
(这是105行)detailrec = bdszconn.Execute(sql)
if detailrec.eof then
response.Write "上一篇:没有文章了"
else
a0=backrsd("id")
response.Write "上一篇:<a href='detailpage.asp?id="&a0&"'>"&detailrec("title")&"</a>"
end if
%>
Microsoft VBScript 编译器错误 错误 '800a03f6'
缺少 'End'
/iisHelp/common/500-100.asp,行242
Microsoft VBScript 运行时错误 错误 '800a01a8'
缺少对象: ''
/detailpage.asp,行105 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询