【发布时间】:2018-08-12 14:37:36
【问题描述】:
我在 Windows 7 上安装了 IIS,但我在 ASP 页面上遇到了问题。
在本教程中,我正在浏览下面的整个代码,这些代码将显示在浏览器中:
<%
response.write("Hello World!")
%>
它没有显示 Hello World! text 它正在显示上面的代码,我怎样才能正确显示?
编辑:
<!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 >
<title>Untitled Page</title>
</head>
<%
response.write("Hello World!")
%>
</body>
</html>
【问题讨论】:
-
请贴出你所有的asp代码。
-
@Etch 这就是所有代码
-
您正在运行的文档的扩展名是什么?确保它是 page.aspx,而不是 page.html 或其他任何内容。
-
@AaronS 文件是.asp
-
暂时把它改成aspx,看看能不能渲染出来。