Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 5th, 2003, 03:33 PM
Authorized User
 
Join Date: Jun 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default My First ASP

I've followed all directions for creating you very first ASP as instructed in Microsoft's HOW TO: Build you First ASP Application and the page is blank when I launch the ASP file. The title shows up as programmed but any code related to VBScript seems to be ignored by my system. Anything obvious I'm missing when building ASP applications?

<%@ Language="Vbscript" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>My First ASP Page</title>
</head>
<body>

<%
    'Use an apostrophe to delimit code comment lines like this one.
    'Declare variables.
    Dim strGreeting, strTime, strTotal

    'Process and calculate.
    strTotal = 10 * 21
    strTime = Now()

    'Create a string that inserts the value of the two variables above.
    strGreeting = "Hello World! The current date and time are: " & strTime & ".<BR>" & _
"The result of our calculation is: " & strTotal

    'Output the results to the browser.
    Response.write strGreeting

%>

</body>
</html>

CEJ
__________________
CEJ
 
Old July 6th, 2003, 03:45 AM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is nothing wrong with your code. The error is most probably within your IIS setup or the way you view the page. Are you using Dreamweaver/Frontpage to code, if so you should check your Site definition and setup one more time.

When I started with ASP i experienced the same error, because i 'openend' the file in Exploreer instead of writing the location in the address field. To view a page you must write the following in the address field : http://YourServerName/YourApplicatio...r/FileName.asp






Similar Threads
Thread Thread Starter Forum Replies Last Post
send parameters from asp page to an asp.net form hastikeyvan ASP.NET 1.0 and 1.1 Basics 2 March 29th, 2008 01:32 AM
using asp.net web user control in asp 3.0 App i_shahid Classic ASP Professional 0 January 8th, 2008 07:32 AM
Custom HTTP 404 Problem w/ASP to ASP.NET kwilliams ASP.NET 2.0 Professional 7 November 26th, 2007 04:17 PM
Upgrading ASP w/ SQLserver 2000 to ASP.NET w/2005 cJeffreywang ASP.NET 2.0 Basics 1 April 5th, 2007 11:30 PM
Porting a sa,ple ASP CR viewer app to ASP.NET jhansen42 Crystal Reports 0 August 29th, 2003 10:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.