【问题标题】:simple ASP classic program is not working简单的 ASP 经典程序不起作用
【发布时间】:2016-03-20 07:37:11
【问题描述】:

我最近刚接触 ASP,我似乎无法让它工作

<html>
<body>
<form action="test.asp" method="post">
<input type="text" name="text" />
<input type="submit" value="submit" />
</form>
<%
dim x
x=Request.Form("text")
Responce.Write(x)
%>
</body>
</html>

显示文本框和提交按钮,但显示此错误且此 ASP 不起作用。我不确定我的代码或 IIS 是否有问题。对此的任何帮助将不胜感激

An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.

【问题讨论】:

标签: iis asp-classic


【解决方案1】:

可能是你打错了:

Responce.Write(x)

应该是:

Response.Write(x)

【讨论】:

  • 很高兴知道这只是我的白痴导致了问题。感谢您的帮助,它现在正在工作
【解决方案2】:

如果您只需要打印“文本”变量:

  <html>
      <body>
          <form action="test.asp" method="post">
              <input type="text" name="text" />
              <input type="submit" value="submit" />
          </form>
          <%=Request.Form("text")%>
      </body>
  </html>

【讨论】:

  • 没错,在这种简单的情况下,这是一个更好的选择。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-06-21
  • 2017-05-23
  • 2015-09-03
  • 1970-01-01
  • 2020-07-25
  • 1970-01-01
相关资源
最近更新 更多