ASP语法错误,请高人帮忙!

来源:百度知道 编辑:UC知道 时间:2024/06/17 03:25:40
我的网站首页出现如下错误:
行:3
字符:1
错误:语法错误
代码:0

具体首页的源码是:(部分代码)
<!--#include file="top.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<!--#include file="inc/email.asp" -->
<!--#include file="admin/func2.asp" -->

<div align="center">
<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="174" valign="top">
<!--#include file="left.asp" -->
</td>
<td valign="top"><TABLE cellSpacing=0 cellPadding=0 width=599 border=0>
<TBODY>
<TR>
<TD colspan="3" vAlign=top>
<!--#include file="search.asp" -->

把错误信息复制上来,你还没有说完
楼下的纯属乱说
不是这样的,它说了哪个文件第3行的!!!

<!--#include file="top.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<!--#include file="inc/email.asp" -->
<!--#include file="admin/func2.asp" -->
<!--#include file="left.asp" -->
<!--#include file="search.asp" -->
依你所述!上面有7个文件,其中有一个文件第三行出错了,错误信息中会提示是哪一个文件的,稍微注意就看到了,把那代码复上来,帮你解决!~

include file "引用文件"
错误信息是: 行:3 <!--#include file="config.asp"-->
说明你的config.asp文件中代码又问题,请仔细检查config.asp中的代码,谢谢。

技术交流,请多多指教 QQ:393042605

这个不好说啊,因为都是include进来的,所以问题都在你include进来的页面里,你单独运行那几个文件能行吗???

呵呵,这位仁兄真的很逗啊,知道什么是include吗???先去看看include进来的文件和使用include的文件之间的关系再来说话吧,真是无语。

include 的语法是相当于把你要引用的文件代码插入到你引用的位置。

顶下 Force_1990 他说的没错。不过前提是你的
config.asp 大于等于3行,哈哈。
╭^^^╮
{/ o