raksmart活动促销

分享

写回答

发帖

从首页连接不到其他网页!救急阿!

国外虚拟主机 国外虚拟主机 1280 人阅读 | 9 人回复

发表于 2008-6-26 02:12:33 | 显示全部楼层 |阅读模式

老大,首页出现问题。

我已经把所有的网页的代码都改成utf-8了。但是:

1.首页代码的最后一句加上<!--#include file="bottom.asp"-->的话,就无法正常显示了!删除就可以。但是删除以后还是从首页连接不到其他网页。
其他网页的开头是这样的:
<!--#include file="conn.asp"-->
<!-- #include file="inc/const.asp" -->
<!--#include file="md5.asp"-->
<title><%=txl_info(0)%>--管理页面</title>
<!--#include file="inc/admin_css.asp"-->
<meta NAME=GENERATOR Content="Microsoft FrontPage 3.0" CHARSET=utf-8>
<BODY leftmargin="0" bottommargin="0" rightmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#DDEEFF">
<%        


2.我能从dreamweaver上看到bottom.html的代码,可是在服务器上却说“'The file you selected is either empty or not a valid HTML document in the selected encoding. Please select the correct encoding or simply add new content to the file.”

救急阿!!!

PS:ASP/MS SQL

[ 本帖最后由 lang 于 2008-6-26 02:16 AM 编辑 ]

回答|共 9 个

lang

发表于 2008-6-27 12:18:08 | 显示全部楼层

老大门,帮帮忙!怎么没人回复?

一路同行

发表于 2008-6-27 12:39:31 | 显示全部楼层

bottom.asp这个页面的字符编码和首页的一样吗?

lang

发表于 2008-6-27 12:54:24 | 显示全部楼层

bottom.asp这个页面的字符编码:
<!--#include file="conn.asp"-->
<style type="text/css">
<!--
body {
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
}
body,td,th {
        font-size: 12px;
}
-->
</style>
<table width="770" height="7" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:3px;">
  <tr>
    <td width="771" height="7"><img src="imege/xian12.jpg" width="770" height="8"></td>
  </tr>
</table>
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30">
         <div align="center"><font color="#666666">
         <%
           set rs=Server.CreateObject("adodb.recordset")
           sql="select * from bottom order by id"
           rs.open sql,conn,1,1
           if not rs.eof then
           do while not rs.eof
         %>
           <a href="mob1.asp?id=<%=rs("id")%>" target="_blank"><%=rs("bot_name")%></a> |
         <%
           rs.movenext
           loop
           else
         %>
         校友录简介 | About |
        广告服务 | 招聘信息 | 招纳英才 | 会员注册 | 联系方式
         <%
           rs.close
           set rs=nothing
           end if
         %>
                </font></div></td>
  </tr>
  <tr>
    <td height="30"><div align="center"><font color="#666666">Copyright ? 1999
        - 2008 Corporation, All Rights Reserved</font></div></td>
  </tr>
  <tr>
    <td height="30"><div align="center"><font color="#666666">公司 版权所有</font></div></td>
  </tr>
</table>

一路同行

发表于 2008-6-27 13:00:57 | 显示全部楼层

如果你某个页面包含了,其他页面,则字符编码必须一样,你自己好好检查一下

lang

发表于 2008-6-27 13:06:08 | 显示全部楼层

我已近把所有页面的编码都改成utf-8了。
数据库需要改么?有方法改么?school_Data.MDF和school_Log.LDF。

一路同行

发表于 2008-6-27 13:14:48 | 显示全部楼层

数据库的不用改了

lang

发表于 2008-6-27 13:42:58 | 显示全部楼层

其他还有什么出错的可能么? 有时间的话,能进站帮我看看么?

一路同行

发表于 2008-6-27 13:45:24 | 显示全部楼层

你在本地测试过吗?正常吗?

lang

发表于 2008-6-27 13:48:41 | 显示全部楼层

测试过,在国内的服务器上可以运行,没有问题。这次是换服务器到LP上。注册了新域名,我用了整整一天时间将所有的网页改成utf-8。

[ 本帖最后由 lang 于 2008-6-27 01:51 PM 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则