为什么不会结束?!~!~?!
function listTree(id) dim rs
dim imgFolder,imgFile
dim link,href,parentHref
dim target,ahref,click
target="main" '所指定的框架名
imgFolder="img/" '默认路径
set rs=conn.execute("select *,(select count(*) from tree where pid = T.id) as children,(select pid from tree where id="&id&") as parent from tree T where pid="&id)
if not rs.eof then
parentHref=Request.ServerVariables("URL")&"?id="&rs("parent")
if id<>0 then response.Write"<div class='node' nowrap='true'><a href='"&parentHref&"' onfocus='blur()'><img src="img/back.gif"' border='0'></a> <a href='"&parentHref&"'>上一级目录</a></div>"&VbCrLf
End function
上边为函数原代码
一运行就说“Microsoft VBScript 编译器错误 (0x800A0401)
语句未结束
/ceshi/01.asp, line 50, column 113
if id<>0 then response.Write"<div class='node' nowrap='true'><a href='"&parentHref&"' onfocus='blur()'><img src="img/back.gif"' border='0'></a> <a href='"&parentHref&"'>上一级目录</a></div>"&VbCrLf
----------------------------------------------------------------------------------------------------------------^
急等老师指教