为什么我用Dreamweaver创建的ASP网页无法在浏览器调试
静态网页在浏览器中调试没问题动态网页ASP在浏览器中调试错误代码500iis也装了设置的也没错以下是我连编辑好的ASP代码<%@LANGUAGE="VBSCRIPT"CO...
静态网页在浏览器中调试没问题 动态网页ASP在浏览器中调试错误代码500
iis也装了 设置的也没错
以下是我连编辑好的ASP代码
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include virtual="/Connections/conn.asp" -->
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_conn_STRING
Recordset1.Source = "SELECT * FROM shujuk"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table width="600" border="0">
<tr>
<td>姓名</td>
<td>性别</td>
<td>地址</td>
<td>电话号码</td>
</tr>
<tr>
<td><%=(Recordset1.Fields.Item("mingzi").Value)%></td>
<td><%=(Recordset1.Fields.Item("xingbie").Value)%></td>
<td><%=(Recordset1.Fields.Item("dizhi").Value)%></td>
<td><%=(Recordset1.Fields.Item("dianhaohaoma").Value)%></td>
</tr>
</table>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%> 展开
iis也装了 设置的也没错
以下是我连编辑好的ASP代码
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include virtual="/Connections/conn.asp" -->
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_conn_STRING
Recordset1.Source = "SELECT * FROM shujuk"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table width="600" border="0">
<tr>
<td>姓名</td>
<td>性别</td>
<td>地址</td>
<td>电话号码</td>
</tr>
<tr>
<td><%=(Recordset1.Fields.Item("mingzi").Value)%></td>
<td><%=(Recordset1.Fields.Item("xingbie").Value)%></td>
<td><%=(Recordset1.Fields.Item("dizhi").Value)%></td>
<td><%=(Recordset1.Fields.Item("dianhaohaoma").Value)%></td>
</tr>
</table>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%> 展开
展开全部
把友好HTTP错误关掉能看到详细报错,方便调试。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
那说明明程序代码有错误
追问
我代码复制上来了哪里错啊了啊?一样的操作方法我记得原来就可以用
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
ASP页面和JSP页面都不能用浏览器直接打开的,需要相关的中间件来访问
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询