|
-
Mar 9th, 2001, 09:49 AM
#1
Thread Starter
Hyperactive Member
Hi all! I am an ASP newbie and can't get it to show in my browser.
What I do, step by step;
1) put into notepad the code
Code:
<%@ Language=VBScript %>
<% Option Explicit %>
<HTML>
<HEAD>
<TITLE>My first ASP Page</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H1>Hello, Universe!</H1>
<P>The time is now <B><% Response.Write Time() %></B>, and the date
is <B><% Response.Write Date() %></B>.
</BODY>
</HEAD>
2) save that file as test.asp in the Inetpub directory on a SQL server
3) point my browser at it, or
4) double click from Windows explorer
When I point my browser to it, the browser does nothing (it maintains the startup page). When I double click the file from Windows Explorer, I get the message "Cannot find the file'SQLTest1\D\Inetpub\Andrew\test.asp' (or one of its components). Make sure that the path and filename are correct and that all required libraries are available.
Why? According to all of the tutorials that I have found, all I need to do is save the file with a .asp extension and point the browser at it.
-
Mar 9th, 2001, 09:56 AM
#2
Lively Member
some stuff
Well first, it will not work by pointing to the directory in Windows explorer. Your file needs to run through IIS (web server) for it to process your ASP code.
Try opening it in your browser with the following:
http://server/Andrew/test.asp
-
Mar 9th, 2001, 10:04 AM
#3
Thread Starter
Hyperactive Member
that was it. Thanks Piz Bruin!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|