下面的代码错在哪儿了?

yl1209 2003-12-02 01:52:33

sSQL=" lsp_GetBookingInquireByDoc '" & request("Field") & "','" & request("Field1")&"','"_
& trim(request("Value")) &"','"& request("Value1") &"','"& request("AndOr") &"','"_
& BeginTime & "','" & EndTime & "','" & request("OrderBy") & "','"_
&Session("UserID")&"','Inquire'"

set rs=cnn.execute(sSQL)
dim TotalReceive
dim TotalDue


Set RsFields=cnn.execute("Select * from ShowingFields where UserID='"&Session("UserID")&"' and Pages='BookingInquire'")
if not RsFields.eof then
%>
<table border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
<caption><%=request("Title")%></caption>
<tr class=Headline>
<th> </td>
<th nowrap><div onclick="Order('BookingID')">Bk ID</div></th>
<th nowrap><div onclick="Order('BookingID_Group')">Group Bk ID</div></th>
<% Dim FieldsTotal
FieldsTotal=0
Do while not RsFields.eof
FieldsTotal=FieldsTotal+1
response.write "<th><div onclick=Order('"&RsFields("showFields")&"')>"&RsFields("showFields")&"</div></th>"
RsFields.movenext
Loop%>
</tr>
<%if rs.EOF then %>
<tr><td colspan="14">No Result Available.</td></tr>
<%' response.end
end if
dim i
i = 0
Do while not rs.EOF
i = i + 1
response.write i%>
<tr bgcolor=<%Bgcolor(i)%> bordercolor=#C0C0C0>
<td nowrap> <%=i%></td>
<!--#include file="BookingMenu.inc"-->
</td>
<% Dim j
j=0
for j=0 to FieldsTotal-1
%>
<td nowrap title="<%=rs(""&rsfields("showfields")&"")%>"> <%=left(rs(""&rsfields("showfields")&""),14)%></td>"
<%next
%>
</tr>
<%
Loop
set rs=nothing%>

</table>
...全文
100 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
yl1209 2003-12-02
  • 打赏
  • 举报
回复
自己搞定了
,呵呵
bzscs 2003-12-02
  • 打赏
  • 举报
回复
写出错误提示

28,407

社区成员

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

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