做asp网页 的大虾请进。高分解决问题。在线等待。急急!!!!!!

chenjia928 2004-07-20 09:25:17
前段修改公司网站。后来上传之后出现了如下问题::
无法显示网页
您要访问的网页有问题,无法显示。

--------------------------------------------------------------------------------

请尝试以下操作:

打开 www.suntop.com.cn 主页,然后查找指向您感兴趣信息的链接。
单击刷新按钮,或以后再试。

单击搜索,寻找 Internet 上的信息。
也可查看相关站点列表。




HTTP 500 - 内部服务器错误
Internet Explorer



前面有人回答过。但还是没有解决问题。这是网页连接数据库的代码。各位大虾看看有什么问题没有????
<%@ LANGUAGE="VBSCRIPT" %>
<% 'option explicit %>
<% dim conn,sqlStr,rs,rowcount,cmd,recordcount

if request.form("Curpage") <> "" then
CurPage = CINT(request.form("Curpage"))
if (Curpage/10 - Curpage\10) > 0 then
Group = Curpage\10 + 1
else
Group = Curpage\10
end if
else

If Request.QueryString("CurPage") = "" then
CurPage = 1
Else
CurPage = CINT(Request.QueryString("CurPage"))
end if
end if

set conn=server.createobject("ADODB.Connection")
conn.open application("suntop")


brand = request.form("brand")
sort = request.form("sort")
typ = request.form("typ")


If brand = "" then
brand = Request.QueryString("brand")
end if
If sort = "" then
sort = Request.QueryString("sort")
end if
If typ = "" then
typ = Request.QueryString("typ")
end if

'response.write Curpage&brand&sort&typ

if(brand<>"0" and sort<>"0" and typ<>"0" and brand<>"" and sort<>"" and typ<>"") then
sqlStr="SELECT * FROM t_product where pro_brand='" & brand & "' and pro_sort='" & sort & "' and pro_type='" & typ & "' order by pro_brand desc,pro_name"
elseif (brand="0" and sort<>"0" and typ<>"0") then
sqlStr="SELECT * FROM t_product where pro_sort='" & sort & "' and pro_type='" & typ & "' order by pro_brand desc,pro_name"
elseif (sort="0" and brand<>"0" and typ<>"0") then
sqlStr="SELECT * FROM t_product where pro_brand='" & brand & "' and pro_type='" & typ & "' order by pro_brand desc,pro_name"
elseif (typ="0" and brand<>"0" and sort<>"0") then
sqlStr="SELECT * FROM t_product where pro_brand='" & brand & "' and pro_sort='" & sort & "' order by pro_brand desc,pro_name"
elseif (sort="0" and typ="0" and brand<>"0") then
sqlStr="SELECT * FROM t_product where pro_brand='" & brand & "' order by pro_brand desc,pro_name"
elseif (brand="0" and typ="0" and sort<>"0") then
sqlStr="SELECT * FROM t_product where pro_sort='" & sort & "' order by pro_brand desc,pro_name"
elseif (brand="0" and sort="0" and typ>"0") then
sqlStr="SELECT * FROM t_product where pro_type='" & typ & "' order by pro_brand desc,pro_name"
else
sqlStr="SELECT * FROM t_product order by pro_brand desc,pro_name"
end if


query = Request.form("query")
If query = "" then
query = Request.QueryString("query")
end if
if(query<>"") then
sqlStr="SELECT * FROM t_product where pro_name like '%" & query & "%' or pro_brand like '%" & query & "%' or pro_sort like '%" & query & "%' or pro_type like '%" & query & "%' order by pro_brand desc,pro_name"
end if

recom = Request.QueryString("recom")
If recom = "" then
recom = Request.form("recom")
end if
if(recom<>"") then
sqlStr="SELECT * FROM t_product where pro_recom='1' order by pro_brand desc,pro_name"
end if

set rs=conn.execute(sqlStr)
set cmd=server.createobject("ADODB.command")
set rs=server.createobject("ADODB.recordset")
cmd.commandtext=sqlstr

cmd.activeconnection=conn
rs.open cmd ,,1,1

rs.pagesize = 8
if CurPage> RS.Pagecount then
CurPage=RS.Pagecount
end if

if rs.recordcount <> "0" then
RS.AbsolutePage = CurPage
end if
%>
<html>
<head>
<title>深圳市振涛自动化系统有限公司</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
...全文
148 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
studio313 2004-09-02
  • 打赏
  • 举报
回复
你以 用uid=sa pwd=;试试
luluso 2004-07-20
  • 打赏
  • 举报
回复
是说吧。怎么会没错误呢?找到错误源后改下就行了.sa登陆失败,就是sql的sa密码换了嘛.
pxk 2004-07-20
  • 打赏
  • 举报
回复
问题太长
chenjia928 2004-07-20
  • 打赏
  • 举报
回复
谢谢 了。
我知道怎么做了
9728 2004-07-20
  • 打赏
  • 举报
回复
检查你的数据库连接字符串中的用户名和密码,检查你的连接字符串
如果整天网站都是这问题,那应该是这问题了。
webdiyer 2004-07-20
  • 打赏
  • 举报
回复
检查你的数据库连接字符串中的用户名和密码。
chenjia928 2004-07-20
  • 打赏
  • 举报
回复
请问有知道的,吗?
chenjia928 2004-07-20
  • 打赏
  • 举报
回复
Microsoft OLE DB Provider for SQL Server 错误 '80040e4d'

用户 'sa' 登录失败。

/search.asp,行22
luluso 2004-07-20
  • 打赏
  • 举报
回复
工具-internet选项-高级-显示友好的http错误的勾去掉-
查看下具体的错误是什么.什么错误提示都没说.能难有人可以帮得到你.
chenjia928 2004-07-20
  • 打赏
  • 举报
回复
前面几天也在论坛上面讨论过。但还是没有解决问题 的。这、
、真的好急的。有一周的时间了
chenjia928 2004-07-20
  • 打赏
  • 举报
回复
没有什么错误啊。有懂大虾加我QQ。156822366
chenjia928 2004-07-20
  • 打赏
  • 举报
回复
不是的。我原来的是2年以前保存的。可能就连不上了
SVG 2004-07-20
  • 打赏
  • 举报
回复
在本地运行, 打开asp调试看看是错在哪一行。
luluso 2004-07-20
  • 打赏
  • 举报
回复
有可能. include是把另外的代码包进来.少了当然有可能出错了.
psgogogo 2004-07-20
  • 打赏
  • 举报
回复
原来的可以运行?
那就把原来的和现在的对比对比?
是不是把开头的<!--include...-->
不小心删掉了?

62,054

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧