Results 1 to 3 of 3

Thread: newbie can't get ASP to run

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Columbia, SC USA
    Posts
    374
    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.

  2. #2
    Lively Member
    Join Date
    Jul 2000
    Location
    Connecticut
    Posts
    98

    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

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Columbia, SC USA
    Posts
    374

    Talking

    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
  •  



Click Here to Expand Forum to Full Width