我正在尝试解决公司网站上的问题。有问题的页面是http://www.srbc.com/SiteMap.asp。尝试调用全局选项文件时出现以下错误:
Microsoft VBScript 运行时错误“800a01a8”需要对象:“/_Includes/Callout_Global.asp,第 40 行”
这是 /_Includes/Callout_Global.asp 文件中错误引用的行:
rs_main.open "Select TeamID, FirstName + ' ' + LastName as FullName from team where Category = 'Attorney' and IsActive = '1' Order by OrderNum"
Run Code Online (Sandbox Code Playgroud)
该代码控制应包含律师姓名列表的下拉框。
此代码在站点中的其他页面上运行良好(例如参见http://www.srbc.com/Careers/Default.asp)。
我不是编码员,只是想稍微清理一下这个网站。这是相当过时的代码,但任何关于我可以做些什么来解决这个问题的建议都将不胜感激。
SiteMap.asp 页面上调用此函数的代码如下所示:
<td width="210" valign="top" class="hideforprint">
<!--#include virtual="/_Includes/Callout_Global.asp" -->
</td>
<td width="20"> </td>
</tr>
</table>
<table width="726" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25"></td>
</tr>
</table>
</td>
<td width="22" valign="top" background="/Images/CommonImages/rightborder.gif"> </td>
</tr>
</table>
<!--#include virtual="/_Includes/Footer.asp" -->
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
谢谢!