473,556 Members | 2,420 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1078
ba*******@hotma il.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*******@hotm ail.com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.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*******@hotma il.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.c om...
: ba*******@hotma il.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
2543
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: (log65536)/(log4)= 8 I've searched around a bit and haven't been able to find anything.
3
2971
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
2601
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 experimenting a bit with what I need to do this and have the following code snippet. But first if I pass the assembly name and type to...
14
2276
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 this string "1,2,3,4,..." Into "...4,3,2,1" This one seems hard enough let alone trying to turn a string of space-seperated words around(is that...
12
1868
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 the build fails with what the book tells me to do. Specifically, I am doing this: public authors1 GetAuthors() { authors1 authors = new...
5
2225
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 everything about javascript, and want to prove that to everyone in a very harsh way? Therefore, I skip the question, and we can go directly to the...
10
4435
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
1528
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
2030
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 might have gotten the syntax wrong. the variable I want to write is a line from a file I am reading: "... f = open('receptor.mol2', 'r') line =...
2
1838
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 in VS 2008. I didn't have contact with Visual Studio, .NET. I only know some basics of c++. My question is what subject of your point of view...
0
7622
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7547
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7825
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7588
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5171
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3596
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.