asp - beginner question...

B

barabba72

Hello all,

I understand this will sound like a very stupid question but...

I'm learning to use ASP and I am following an online tutorial. First
thing it shows a very basic asp script like this:

<html>
<body>

<%
response.write("Hello World!")
%>

</body>
</html>

However I pasted this code in a file called test.html and when I try to
open it with IE (IE Ver 6 SP2, XP SP2) I just get a blank page. Where
do I make it wrong ?

Thank you and Regards,
Bar
 
B

Bob Barrows [MVP]

Hello all,

I understand this will sound like a very stupid question but...

I'm learning to use ASP and I am following an online tutorial. First
thing it shows a very basic asp script like this:

<html>
<body>

<%
response.write("Hello World!")
%>

</body>
</html>

However I pasted this code in a file called test.html and when I try
to open it with IE (IE Ver 6 SP2, XP SP2) I just get a blank page.
Where do I make it wrong ?
You named the file with an html extension instead of "asp". Call it
test.asp, and make sure asp is enabled in your IIS settings.

Bob Barrows
 
K

Kyle Peterson

after you rename it to ".asp"

also, make sure you run it through a webserver.. dont just run it off your
hd in some folder and expect the asp code inside it ti do its thing
 
T

Tim Slattery

Hello all,

I understand this will sound like a very stupid question but...

I'm learning to use ASP and I am following an online tutorial. First
thing it shows a very basic asp script like this:

<html>
<body>

<%
response.write("Hello World!")
%>

</body>
</html>

However I pasted this code in a file called test.html and when I try to
open it with IE (IE Ver 6 SP2, XP SP2) I just get a blank page. Where
do I make it wrong ?

ASP code is intended to be executed by a web server. If you simply
open the file with your browser, no server is involved and the code
does not get executed. Since ASP is proprietary to Microsoft, the only
server that executes it (the only server that executes it *well*,
anyway) is IIS, and that runs only on XP Professional or Windows
Server 2003. You need to install IIS, put your ASP page in a website
controlled by IIS, and have your browser retrieve the page through
IIS.
 
R

Roland Hall

: (e-mail address removed) wrote:
: ASP code is intended to be executed by a web server. If you simply
: open the file with your browser, no server is involved and the code
: does not get executed. Since ASP is proprietary to Microsoft, the only
: server that executes it (the only server that executes it *well*,
: anyway) is IIS, and that runs only on XP Professional or Windows
: Server 2003. You need to install IIS, put your ASP page in a website
: controlled by IIS, and have your browser retrieve the page through
: IIS.

or any other flavor of windows that supports IIS/PWS.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top