仿阿里巴巴商贸系统一直提示“系统日常维护中!!”

来源:百度知道 编辑:UC知道 时间:2024/06/06 06:13:20
我顺着代码找到了const.asp页
感觉应该是下边代码的问题
但又不知道该怎么改
<!--#include file="ubb.asp"-->
<%If IsObject(contt) = false Then

if Application("citycss")="" or Application("citycss")<>"" then
On Error Resume Next
<--我感觉是上边的一句话的问题-->

set contt = Server.CreateObject("ADODB.Connection")
contt.Open conndata
If Err.Number <> 0 Then
Response.write "系统日常维护中!!"
Response.End()
end if

end if

SMT_citytime="now()"
SMT_citydate="date()"

set rs=server.createobject("adodb.recordset")
const.asp
<!--#include file="ubb.asp"-->
<%If IsObject(contt) = false Then

if Application("citycss")="" then
On Error Resume Next
set contt = Server.CreateObject("ADODB.Connection")
contt.Open conndata
en

我不太明白你想要做什么,我给你解释下你的代码中几条重要的语句吧
On Error Resume Next
是保证遇到错误继续执行下一条语句
If Err.Number <> 0 Then '这里,只要程序出错,Err.Number就一定会是大于0的数。
知道了这些,相信你知道要怎么做了吧。

我明白你的意思了,你只要删掉下面这个代码块就可以了
If Err.Number <> 0 Then
Response.write "系统日常维护中!!"
Response.End()
end if
因为Response.End()是终止执行下面的ASP代码的意思,如果下面还有这句代码,你一同去掉,就可以解决问题

你发的代码好象不全,
你在const.asp中只保留<!--#include file="ubb.asp"-->