同一个包含文件,为什么在首页无效,而在次页面有效
包含文件放在public下,包含文件的路径没错,
这是首页的原代码:
<!--#include file="includes/conn.asp" -->
<!--#include file="includes/AspFun.asp"-->
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="Config/Style.css" type="text/css">
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<div align="center">
<%pageLevel=1%>
<table width="762" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><!--#include file="public/header.asp" --></td>
</tr>
</table>
<div align="center">
。。。
这是次页面的原代码
<%
Dim Info_Id '当前信息ID(2级)
Dim StrKeyWord
'从上一页读取信息的类别
Info_Id=Request.QueryString ("Info_Id")
StrKeyWord=Request.QueryString ("StrKeyWord")
%>
<!--#include file="../includes/conn.asp" -->
<!--#include file="../includes/AspFun.asp"-->
<html>
<head>
<title>怀柔私个协</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../Config/Style0.css" rel="stylesheet" type="text/css">
<script language="javaScript" src="../includec/check.js"></script>
<link href="../Config/Style.css" rel="stylesheet" type="text/css">
<link href="../css.css" rel="stylesheet" type="text/css">
<body bgcolor="#FFFFFF" background="../display/images/di.gif" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--#include file="../public/header.asp" -->
<%set RsInfo=server.CreateObject ("adodb.recordset")
。。。
谢谢!!