关于ASP问题,急!(200分)

  • 主题发起人 主题发起人 guangmin
  • 开始时间 开始时间
G

guangmin

Unregistered / Unconfirmed
GUEST, unregistred user!
我照抄的ASP程序无法打开数据库,IE报错:
HTTP 错误 405
405 不允许此方法

对于请求所标识的资源,不允许使用请求行中所指定的方法。请确保为所请求的资源设置了正确的 MIME 类型。

怎么办?救救我!
 
代码!别告诉我你用IDEV的控件,我不会用那个
 
请写的详细一点。
 

<%
dim message
message=""
vname=Request("name")
vemail=Request("email")
vtel=Request("tel")
vdetail=Request("detail")
if vname="" or vemail="" or vtel="" or vdetail="" then
message="留言簿没有填写完整"
else message="谢谢您的支持"
endif
%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<% if vname="" or vemail="" or vtel="" or vdetail="" then %>
<SCRIPT language=JavaScript>
msg=" <%=message %>"
windows.alert(msg)
windows.location=""
</SCRIPT>
<%else%>
<%
sql="insert into guest values("
sql=sql&amp;""&amp;vname&amp;""&amp;","&amp;""&amp;vemail&amp;""
sql=sql&amp;","&amp;""&amp;vtel&amp;""&amp;","&amp;""&amp;vdetail&amp;")"
set Conn=Server.CreateObject("ADODB.Connection")
Conn.Open "guest"
Set Rs=Conn.Execute (sql)
%>

<P>&amp;nbsp;</P>

</BODY>
</HTML>
 
/////////
<%
dim message
message=""
vname=Request("name")
vemail=Request("email")
vtel=Request("tel")
vdetail=Request("detail")
if vname="" or vemail="" or vtel="" or vdetail="" then
message="留言簿没有填写完整"
else message="谢谢您的支持"
endif
%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<% if vname="" or vemail="" or vtel="" or vdetail="" then %>
<SCRIPT language=JavaScript>
msg=" <%=message %>"
windows.alert(msg)
windows.location=""
</SCRIPT>
<%else%>
<%
sql="insert into guest values("
sql=sql&amp;""&amp;vname&amp;""&amp;","&amp;""&amp;vemail&amp;""
sql=sql&amp;","&amp;""&amp;vtel&amp;""&amp;","&amp;""&amp;vdetail&amp;")"
set Conn=Server.CreateObject("ADODB.Connection")
Conn.Open "guest"
Set Rs=Conn.Execute (sql)
%>

<P>&amp;nbsp;</P>

</BODY>
</HTML>
//////
 

dim message
message=""
vname=Request("name")
vemail=Request("email")
vtel=Request("tel")
vdetail=Request("detail")
if vname="" or vemail="" or vtel="" or vdetail="" then
message="留言簿没有填写完整"
else message="谢谢您的支持"
endif

<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<% if vname="" or vemail="" or vtel="" or vdetail="" then %>
<SCRIPT language=JavaScript>
msg=" <%=message %>"
windows.alert(msg)
windows.location=""
</SCRIPT>
<%else%>
<%
sql="insert into guest values("
sql=sql&amp;""&amp;vname&amp;""&amp;","&amp;""&amp;vemail&amp;""
sql=sql&amp;","&amp;""&amp;vtel&amp;""&amp;","&amp;""&amp;vdetail&amp;")"
set Conn=Server.CreateObject("ADODB.Connection")
Conn.Open "guest"
Set Rs=Conn.Execute (sql)
%>

<P>&amp;nbsp;</P>


 

<%
dim message
message=""
vname=Request("name")
vemail=Request("email")
vtel=Request("tel")
vdetail=Request("detail")
if vname="" or vemail="" or vtel="" or vdetail="" then
message="留言簿没有填写完整"
else message="谢谢您的支持"
endif

<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">

if vname="" or vemail="" or vtel="" or vdetail="" then %>
<SCRIPT language=JavaScript>
msg=" =message %>"
windows.alert(msg)
windows.location=""
</SCRIPT>
else%>

sql="insert into guest values("
sql=sql&amp;""&amp;vname&amp;""&amp;","&amp;""&amp;vemail&amp;""
sql=sql&amp;","&amp;""&amp;vtel&amp;""&amp;","&amp;""&amp;vdetail&amp;")"
set Conn=Server.CreateObject("ADODB.Connection")
Conn.Open "guest"
Set Rs=Conn.Execute (sql)


<P>&amp;nbsp;</P>

</BODY>
</HTML>
 
没有加《HTML》输出标签
 
多人接受答案了。
 
后退
顶部