Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > asp - beginner question...

Reply
Thread Tools

asp - beginner question...

 
 
barabba72@hotmail.com
Guest
Posts: n/a
 
      05-19-2005
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

 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      05-19-2005
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"


 
Reply With Quote
 
 
 
 
Kyle Peterson
Guest
Posts: n/a
 
      05-20-2005
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


<> wrote in message
news: ups.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
>



 
Reply With Quote
 
Tim Slattery
Guest
Posts: n/a
 
      05-20-2005
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)

 
Reply With Quote
 
Roland Hall
Guest
Posts: n/a
 
      05-21-2005
"Tim Slattery" <> wrote in message
news:...
: 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginner's Beginner william nelson Ruby 7 04-11-2011 11:23 PM
ASP .NET Beginner trying to figure out <asp:Repeater and checkboxes bissatch@yahoo.co.uk ASP .Net 2 02-16-2007 05:13 AM
No Class at ALL!!! beginner/beginner question =?Utf-8?B?S3VydCBTY2hyb2VkZXI=?= ASP .Net 7 02-03-2005 02:47 PM
Tutorial for beginner/ Tutorial voor beginner Rensjuh C++ 7 09-02-2004 12:41 AM
Re: beginner of asp.net Abraham S ASP .Net 1 08-14-2003 08:19 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57