NCS Logo - Click for home page Northstar Developer Center
Platforms
All Platforms
.NET Framework (1.x - 4.x)
Active Server Pages
ASP.NET
C#
SQL Server
VB.NET
Visual Basic

Keywords
.NET Data Types
.NET E-mail
.NET Events
.NET Functions
.NET Object Programming
.NET System.Configuration
.NET System.Diagnostics
.NET System.IO
.NET System.Net
.NET System.Net.Sockets
Active Data Objects
ASP Architecture
ASP Black Belt
ASP Built-in Functions
ASP Built-in Objects
ASP Debugging
ASP Performance
ASP Security
ASP Syntax
ASP.NET Authentication
ASP.NET Controls
ASP.NET Data Access
ASP.NET Features
ASP.NET Master Pages
ASP.NET Page Events
ASP.NET Security
ASP.NET ViewState
Atom
Certifications
COM, DCOM, COM+
Data Access
E-Mail
Errors
Exporting Data
HTML Tips
IIS
Object-Oriented Programming
RSS
SQL
Uncategorized ASP Tips
VB API Programming
VB Forms
VB Syntax
XML

Book Support
Visual Basic 6 Bible
ASP Bible
ASP Weekend Crash Course
ASP.NET At Work
Creating Web Services

ASP Code Not Executing

Written by Eric Smith, Northstar Computer Systems LLC

A common question I get a lot is why ASP code isn't executing properly. The users see the ASP delimiter tags when they view the source code of their page and can't figure out why the code isn't running.

The basic problem here is that if you're seeing ASP delimiter tags in your HTML output, that means that either the page is being run through a server that doesn't understand ASP, or, more likely, you aren't running the page through a server at all.

The easy way to test the second case (which is the most likely one) is to look at the URL entered in the Location or URL box on your browser. If it doesn't start with http, you're probably viewing a file directly and not through the server.

Another reason for ASP not executing: the file is not suffixed with .asp. You can use IIS's console to configure additional file extensions to use for ASP applications; however, a common mistake is to put ASP into HTML files and forget to change the file extension.

Keywords: [ ASP Architecture | ASP Debugging ]

Publication Date: 9/1/2000, Last Update: 2/12/2010