WEB提示错!

forestli 2002-03-25 10:14:57
Method Not Allowed
The requested method POST is not allowed for the URL /htm/webmanage/webmanage-download/temp/add-download-ok.asp.
不知道原因是?
...全文
49 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
Studio 2002-03-26
  • 打赏
  • 举报
回复
faint
jamex 2002-03-26
  • 打赏
  • 举报
回复
你用的是什么web服务器?
lanying 2002-03-25
  • 打赏
  • 举报
回复
说呀
Studio 2002-03-25
  • 打赏
  • 举报
回复
就是啊 说说错误 大家都吸取教训啊
希偌 2002-03-25
  • 打赏
  • 举报
回复
什么错误,错在何处呢?
forestli 2002-03-25
  • 打赏
  • 举报
回复
大家不好意思,我知道我的问题出在什么地方了
Studio 2002-03-25
  • 打赏
  • 举报
回复
那个Action估计 没有人会去改吧!
该了 所有的ASP都不能使用POST了
Studio 2002-03-25
  • 打赏
  • 举报
回复
好象没什么错误哦!faint
tripofdream 2002-03-25
  • 打赏
  • 举报
回复
我是说IIS中的设置.
管理工具-->Internet服务管理器-->默认WEB站点-->右键-->属性-->主目录-->配置-->应用程序映射-->选择".asp"-->编辑-->动作
forestli 2002-03-25
  • 打赏
  • 举报
回复
可以,我给你看看
<html>
<head>
<title>上海华亨电信</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.未命名1 { font-family: "Arial", "Helvetica", "sans-serif"; font-size: 11px; line-height: 17px}
.未命名2 { line-height: 10px}
.表单 { line-height: 10px}
.文字 { font-size: 12px; line-height: 20px}
a { color: #FF6600; text-decoration: none}
a:hover { color: #FF9900; text-decoration: underline}
-->
</style>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<tr>

<td>
<table width="778" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../../../../images/webmanage-top.jpg" width="739" height="219" usemap="#Map" border="0"></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="17%" valign="top"><img src="../../../../images/webmanage-left.jpg" width="107" height="299"></td>
<td width="83%" valign="top">
<p class="文字" align="center">以下为您输入的内容,请确认后<a href="add-download.asp">返回</a>!</p>
<table width="50%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="#CCCCCC" valign="top" colspan="2">
<div align="center"><font face="Arial, Helvetica, sans-serif" size="1" color="#999999">
</font></div>
</td>
</tr>
<tr>
<td bgcolor="#eeeeee" valign="middle" width="23%" class="文字">用户名:</td>
<td bgcolor="#eeeeee" valign="middle" width="77%">
<%dim username,password,filelink,filename,note
username=Request.Form("username")
password=Request.Form("password")
filelink=Request.Form("filelink")
filename=Request.Form("filename")
note=Request.Form("note")
%><%=username%>
</td>
</tr>
<tr>
<td bgcolor="#eeeeee" valign="middle" width="23%" class="文字">密  码:</td>
<td bgcolor="#eeeeee" valign="middle" width="77%"><%=password%></td>
</tr>
<tr>
<td bgcolor="#eeeeee" valign="middle" width="23%" class="文字">文件名称:</td>
<td bgcolor="#eeeeee" valign="middle" width="77%"><%=filename%></td>
</tr>
<tr>
<td bgcolor="#eeeeee" valign="middle" width="23%" class="文字">连接路径:</td>
<td bgcolor="#eeeeee" valign="middle" width="77%"><%=filelink%></td>
</tr>
<tr>
<td bgcolor="#eeeeee" valign="middle" width="23%" class="文字">备  注:</td>
<td bgcolor="#eeeeee" valign="middle" width="77%"><%=note%></td>
</tr>
<tr>
<td bgcolor="#CCCCCC" valign="top" colspan="2">
<div align="center">
<p class="文字"><a href="add-download.asp"><%
dim objconnection, sql
set objconnection=Server.CreateObject("ADODB.Connection")
objconnection.Open"driver={SQL Server};server=“***************”

sql="INSERT INTO huaheng (id,username,password,filelink,filename,note,intime) VALUES('"& REPLACE(DATE,"-","")& REPLACE(TIME,":","") & "','"& username &"','"& password & "','"& filelink & "',"& filename & ",'"& note & "',getdate()) "

objconnection.Execute(sql)
objconnection.close
set objconnection=nothing
%>返回</a></p>
</div>
</td>
</tr>
</table>
<p align="center"> </p>
<p align="center"> </p>
<p align="left"><b><span class="文字">没有得到华亨电信授权的浏览者擅自进入本系统,华亨电信将追究其法律责任!<br>
<br>
</span></b><span class="文字"><font color="#FF6633">©华亨电信,版权所有</font></span><font color="#FF6633"><br>
<br>
</font></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<map name="Map">
<area shape="rect" coords="621,80,686,100" href="../../../../index.htm">
</map>
</body>
</html>
Studio 2002-03-25
  • 打赏
  • 举报
回复
估计是add-download-ok.asp文件的问题!
代码可以看看吗?
forestli 2002-03-25
  • 打赏
  • 举报
回复
是有写POST的啊!我给你看我的代码
<html>
<head>
<title>上海华亨电信</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.未命名1 { font-family: "Arial", "Helvetica", "sans-serif"; font-size: 11px; line-height: 17px}
.未命名2 { line-height: 10px}
.表单 { line-height: 10px}
.文字 { font-size: 12px; line-height: 20px}
a { color: #FF6600; text-decoration: none}
a:hover { color: #FF9900; text-decoration: underline}
-->
</style>
<script language="JavaScript">
<!--
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') {
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (val<min || max<val) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('请准确填写表单内容!\n');
document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<tr>

<td>
<table width="778" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../../../../images/webmanage-top.jpg" width="739" height="219" usemap="#Map" border="0"></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="17%" valign="top"><img src="../../../../images/webmanage-left.jpg" width="107" height="299"></td>
<td width="83%" valign="top">
<p class="文字" align="center">请输入您想创建的用户名和密码,以及赋予权限内容!</p>
<table width="50%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="#CCCCCC" valign="top" width="100%">
<div align="center"><font face="Arial, Helvetica, sans-serif" size="1" color="#999999">
Please  Input</font></div>
</td>

</tr>
<tr>
<td bgcolor="#eeeeee" valign="middle" width="100%">
<form name="" method="post" action="add-download-ok.asp" onSubmit="MM_validateForm('username','','R','password','','R','filelink','','R','filename','','R');return document.MM_returnValue">
<div align="left"><span class="文字"> <b> </b></span><b><span class="未命名1"> 用户名</span></b><span class="文字"><b>:</b><font color="#FFFFFF">
<input type="text" name="username" size="10">
</font><b class="未命名1"><br>
  密  码:</b>
<input type="text" name="password" size="10">
<b><br>
 文件名称:
<input type="text" name="filename" size="10">
<br>
</b><font color="#FFFFFF"><b><font color="#000000"> 连接路径:
<input type="text" name="filelink" size="15">
<br>
 备  注:
<input type="text" name="note" size="10" onBlur="MM_validateForm('username','','R','password','','R','filelink','','R','filename','','R');return document.MM_returnValue">
</font></b></font></span> </div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="center"><span class="文字"><font color="#FFFFFF">
<b></b></font></span></div>
<div align="center">
<input type="submit" name="Submit" value="确定">
<input type="reset" name="Submit2" value="重置">
</div>
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td bgcolor="#CCCCCC" valign="top" width="71%">
<div align="center"> </div>
</td>
</tr>
</table>
<p align="center"> </p>
<p align="center"> </p>
<p align="left"><b><span class="文字">没有得到华亨电信授权的浏览者擅自进入本系统,华亨电信将追究其法律责任!<br>
<br>
</span></b><span class="文字"><font color="#FF6633">©华亨电信,版权所有</font></span><font color="#FF6633"><br>
<br>
</font></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<map name="Map">
<area shape="rect" coords="621,80,686,100" href="../../../../index.htm">
</map>
</body>
</html>
tripofdream 2002-03-25
  • 打赏
  • 举报
回复
检查WEB站点的"应用程序设置"中".asp"文件的"动作"中是否有"post"
forestli 2002-03-25
  • 打赏
  • 举报
回复
还是告诉大家这个问题的答案好了,其实是因为这个服务器不解吸ASP
Studio 2002-03-25
  • 打赏
  • 举报
回复
就是啊,快点说嘛!

28,394

社区成员

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

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