IIS ASP - asp - beginner question...

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > May 2005 > asp - beginner question...





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author asp - beginner question...
barabba72@hotmail.com

2005-05-19, 5:52 pm

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

Bob Barrows [MVP]

2005-05-19, 5:52 pm

barabba72@hotmail.com wrote:
> 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
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Kyle Peterson

2005-05-20, 2:48 am

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


<barabba72@hotmail.com> wrote in message
news:1116533754.790158.64860@z14g2000cwz.googlegroups.com...
> 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
>



Tim Slattery

2005-05-20, 7:54 am

barabba72@hotmail.com wrote:

>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.

--
Tim Slattery
MS MVP(DTS)
Slattery_T@bls.gov
Roland Hall

2005-05-21, 2:52 am

"Tim Slattery" <Slattery_T@bls.gov> wrote in message
news:d7nr8119s1hslso5veiem4e7hcpvflh8au@
4ax.com...
: barabba72@hotmail.com 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


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com