asp页面效果不佳,只能用作html [英] asp page not work well, just work as html

查看:77
本文介绍了asp页面效果不佳,只能用作html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建一个ASP页并尝试在我的浏览器中查看它.

i create an ASP page and try to see it in my browser.

<html>
<body>

<%
response.write("My first ASP script!")
%>

</body>
</html>




但浏览器只显示




but the browser just display

<% response.write("My first ASP script!") %>


而不只是它需要的字符串.

我试图在多台计算机和Web服务器上看到它,并且其作用相同.
缺少什么.
请帮助


[edit]添加了代码块,将我的内容作为纯文本..."选项已禁用-OriginalGriff [/edit]


instead of just the string that it need.

i tried to see that in several computers and web servers and it acts the same.
what is missing.
pls help


[edit]Code block added, "Treat my content as plain text..." option disabled - OriginalGriff[/edit]

推荐答案

您是否通过URL查看它?我的意思是,您是否在IIS中拥有它.
尝试将您的asp文件复制到C:\inetpub\wwwroot中,并以http://localhost/yourpage.asp
Are you viewing it by URL? I mean, do you have it in IIS.
Try to copy your asp file in C:\inetpub\wwwroot and browse as http://localhost/yourpage.asp


浏览一下:看一下:它可能会帮助您理解.
http://www.webwiz.co.uk/kb/asp-tutorials/first-asp-page.htm [ ^ ]
Have a look at this: it will probably help you to understand.
http://www.webwiz.co.uk/kb/asp-tutorials/first-asp-page.htm[^]


我尝试将其作为网址http://localhost/mypage.asp.

重要说明:当我将页面放在正在运行的网站中时,它工作正常(但它不是我的网站,所以我无法将其留在那儿),所以我似乎在iis中需要一些定义?
i tried as a url http://localhost/mypage.asp.

important note: when i put the page in a running website it works fine (but it''s not my website so i couldn''t leave it there), so it''s look like i meens some definition in the iis maybe?


这篇关于asp页面效果不佳,只能用作html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆