raksmart活动促销

分享

写回答

发帖

建站求助!急!急!

国外虚拟主机 国外虚拟主机 2035 人阅读 | 6 人回复

发表于 2008-6-28 11:49:41 | 显示全部楼层 |阅读模式

各位老大,

我的网站为ASP/MS SQL.在国内服务器上可以正常运行,有连接,可提供。目前网站申请新域名,移动到LP上。

以下步骤已经完成:
1.数据库建立完毕,NDS数据库链接完成,数据库备份文件上传完成。
2.网站上传完成,网页代码修改成UTF-8完成。
3.首页可以部分显示。

出现的问题:
1.首页代码的最后一句加上<!--#include file="bottom.asp"-->的话,就无法正常显示了!删除就可以。
2.但是删除以后还是从首页连接不到其他网页。

求能够解决以上问题的各位大哥,价格面议,我的QQ:66841279. 急!急!急!

回答|共 6 个

一路同行

发表于 2008-6-28 11:54:40 | 显示全部楼层

本版不允许交易行为!可以去交易/广告版块 谢谢合作
但是删除以后还是从首页连接不到其他网页?什么意思?

lang

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

原帖由 一路同行 于 2008-6-28 11:54 AM 发表
本版不允许交易行为!可以去交易/广告版块 谢谢合作
但是删除以后还是从首页连接不到其他网页?什么意思?


老大,谁能帮帮忙!弄了快1个月了,遇到瓶颈,过不去啦。。。。。

就是说首页上有连接其他网页的连接,比如“注册”“忘记密码”什么的,可是点击后,显示500错误,连接不上。

一路同行

发表于 2008-6-28 12:37:22 | 显示全部楼层

你程序问题,查看日志文件

大漠孤狼

发表于 2008-6-28 17:05:21 | 显示全部楼层

加上之后显示什么错误?

sutrong

发表于 2008-6-28 17:13:54 | 显示全部楼层

相关的数据库连接信息有没有设置好.../??
RAKSmart

lang

发表于 2008-6-28 20:27:25 | 显示全部楼层

原帖由 大漠孤狼 于 2008-6-28 05:05 PM 发表
加上之后显示什么错误?


加上之后显示超时,错误信息500。

DNS链接已经弄好了。但是不晓得具体怎么用。
conn.asp的设定是:

<%
'option explicit
'dim startime,endtime,conn,connstr,db
on error resume next
startime=timer()
Set conn = Server.CreateObject("ADODB.Connection")
connstr="Driver={SQL Server};Server=IP地址;Database=school;Uid=用户名wd=密码;"
conn.Open connstr
function CloseDatabase
Conn.close
Set conn = Nothing
End Function
Function userlogin() '检测用户是否登录
    Dim UserName
    UserName=request.cookies("name")
    If UserName<>"" Then
        'sql="select top 1 clubuser_name,clubuser_password,bbsmanager from clubuser Where clubuser_name='"&UserName&"'"
                sql="select top 1 username,password,bbsmanager from [user] Where username='"&UserName&"'"
        Set rs = Server.CreateObject("ADODB.Recordset")
        rs.open sql,conn,1,1
        if rs.bof and rs.eof then
            userlogin="N"
        else
            'If trim(rs("clubuser_password"))=trim(request.Cookies("clubuser_password")) Then
                        if trim(rs("password"))=trim(request.Cookies("clubuser_password")) then
               userlogin="Y"
            Else
               userlogin="N"
            End If
        end IF
                Response.Cookies("bz")=rs("bbsmanager")
        rs.close
        set rs=nothing
    else
        userlogin="N"
    end if   
End Function
%>


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>

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

本版积分规则