打击太打了,刚写了两三句,就出来一个错误!

stonecry 2002-04-09 12:15:11
HTTP Error 405
405 Method Not Allowed

The method specified in the Request Line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting.

Please contact the server's administrator if this problem persists.


不知是什么意思?如何解决?
哪位大侠能谈谈怎么调试Asp程序?
...全文
29 18 打赏 收藏 转发到动态 举报
写回复
用AI写文章
18 条回复
切换为时间正序
请发表友善的回复…
发表回复
is 2002-04-10
  • 打赏
  • 举报
回复
嗯。

xjjcn 2002-04-10
  • 打赏
  • 举报
回复
<form name="form1" method=post action="xxx.asp">
这样写规范
tripofdream 2002-04-10
  • 打赏
  • 举报
回复
不指明action时缺省是当前页,你的当前页是不是.htm的,还有,当在VI中预览.asp文件时,实际上VI生成了一个临时的htm文件,此时action就会指向这个htm文件
流星尔 2002-04-10
  • 打赏
  • 举报
回复
action不能丢
karma 2002-04-09
  • 打赏
  • 举报
回复
post your asp file, if it has only 两三句, :-)
jxwangzhigang 2002-04-09
  • 打赏
  • 举报
回复
首先得有页面的提交到服务器,要不就要采用别的方法!
heman2000 2002-04-09
  • 打赏
  • 举报
回复
补充一下,如果没写ACTION的话,默认的是当前页
heman2000 2002-04-09
  • 打赏
  • 举报
回复
<% @language=VbScript %>
<% Option Explicit
Response.Expires=0%>

<html>
<title>talk</title>
<body>
<form method=post>
<input type="textfield" name="id" ></input>
<input type="textfield" name="pwd"></input>
<input type=submit value="提交">
</form>
<%
if request.servervariables("request_method")="POST" then
response.write request.form("id")
response.write request.form("pwd")
end if
%>
</body>
</html>
sqhaha 2002-04-09
  • 打赏
  • 举报
回复
action="????"
还有 response.write request.form("id") 这是什么意思啊?

建议 先学学html的提交表单的部分 这个和asp无关
stonecry 2002-04-09
  • 打赏
  • 举报
回复
<% @language=VbScript %>
<% Option Explicit
Response.Expires=0%>

<html>
<title>talk</title>
<body>
<form method=post>
<input type="textfield" name="id" ></input>
<input type="textfield" name="pwd"></input>
</form>
response.write request.form("id")
response.write request.form("pwd")
</body>
</html>

凭记忆写的,大概就是这样了。
流星尔 2002-04-09
  • 打赏
  • 举报
回复
把代码贴出来
BrightEye 2002-04-09
  • 打赏
  • 举报
回复
your code?
stonecry 2002-04-09
  • 打赏
  • 举报
回复
一个表单发送的语句,照书抄的,用的是POST方法。
把两个文本域的东西,输出到客户端。

sqhaha(江湖夜雨),我用的是IIS。
aocool 2002-04-09
  • 打赏
  • 举报
回复
把你的两三句拿出来瞧瞧
julyclyde 2002-04-09
  • 打赏
  • 举报
回复
默认,目录和HTM都不能POST
Lostinet 2002-04-09
  • 打赏
  • 举报
回复
是POST到目录中去吧??
sqhaha 2002-04-09
  • 打赏
  • 举报
回复
数据传送失败
你的server没接受
你用的IIS还是pws?
julyclyde 2002-04-09
  • 打赏
  • 举报
回复
我看就是没有action,结果POST到一个HTM上去了。发生405错误

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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