473,397 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

asp - beginner question...

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

Jul 22 '05 #1
4 1073
ba*******@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"
Jul 22 '05 #2
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
<ba*******@hotmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro 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

Jul 22 '05 #3
ba*******@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)
Sl********@bls.gov
Jul 22 '05 #4
"Tim Slattery" <Sl********@bls.gov> wrote in message
news:d7********************************@4ax.com...
: ba*******@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
Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Svens | last post by:
Hey everyone! I'm a math student working on a short script involving logs. I have a function on my scientific calculator, and was wondering if there was a similar funtion in python. For example:...
3
by: jvax | last post by:
Hi all, I hope I'm posting in the right NG... I have a data text file I want to read from a c++ program. the data file goes like this: 90 # number of balls 33 42 13
1
by: Mike Malter | last post by:
I am just starting to work with reflection and I want to create a log that saves relevant information if a method call fails so I can call that method again later using reflection. I am...
14
by: z_learning_tester | last post by:
But I can't seem to find the answer. The question is how do you reverse the words in a string? Or how do you reverse the numbers listed in a string? The example is usually something like: Turn...
12
by: Blaze | last post by:
I am doing the first walk through on the Visual Studio .Net walkthrough book to learn a little about programming. I am having issues with the first tutorial not running correctly. It seems that...
5
by: optimistx | last post by:
As a beginner in javascript I had a question. I was reading FAQ and posts here. I became very unhappy: Obviously this group is mainly for wise, pedantic, unkind etc people, who already know...
10
by: Roman Zeilinger | last post by:
Hi I have a beginner question concerning fscanf. First I had a text file which just contained some hex numbers: 0C100012 0C100012 ....
4
by: a | last post by:
Dear all vb.net developer I want to know the time I need to master vb.net? I'm beginner
3
by: Ben Keshet | last post by:
I have a probably simple beginner's question - I have a script that I am currently able to print its output. instead, i want to write it into a file - I tried different versions of write() but...
2
by: roanhn | last post by:
Hello. I've to to write a master's thesis. Currently I deal with php, mysql, ajax. Fate decreed that I've to choose one of this subjects: 1.gdi+ library in .net technology 2.ado.net technology...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.