ASP Code Is Displayed in Browser
This article was previously published under Q266748
This article has been archived. It is offered "as is" and will no longer be updated.
When you open an Active Server Page (ASP) in a Web browser, you see the ASP code rather than the HTML code that is generated by the Web server.
This behavior occurs when either of the following conditions is true:
- The ASP engine is not installed.
The ASP engine is not installed on the Web server that compiles the ASP code. For example, if you are using Microsoft Peer Web Services for Windows NT Workstation or Microsoft Personal Web Server for Windows 95, you must install the ASP engine on the Web server.
If you are using Internet Information Server 4.0 or later, or the Microsoft Personal Web Server 4 for Windows 98, you do not need to install the ASP engine. These Web servers have the ASP functionality built in.
NOTE: If you are not using one of these servers, you cannot install the ASP engine.
- Scripts are not allowed to run.
Web pages written using ASP code are dynamic scripts, and as such they need to have script or execute access defined in order to function properly. If the folder that contains the ASP file is not configured to allow scripts to run, the file is treated as a static page.
To resolve this problem, use the appropriate method for your situation.
Install the ASP Engine from MicrosoftBefore you can use the ASP features in FrontPage, install the components listed in the following Microsoft Knowledge Base article:
312638 FP: What You Need to Use Active Server Pages (ASP) in FrontPage
Set the Folder to Allow Scripts to RunNOTE: This method is not available if you are using a disk-based Web.
- Open the Web in FrontPage.
- On the View menu, click Folders.
- Right-click the folder that contains the ASP file, and then click Properties on the menu that appears.
- Click to select the Allow Scripts to be run check box.
- Click OK.
For more information about troubleshooting Active Server Pages, please see "ASP Troubleshooting Tips and Techniques" on the following Microsoft Web site:
front page ASP
Article ID: 266748 - Last Review: 10/20/2013 22:38:00 - Revision: 2.3
Microsoft FrontPage 2000 Standard Edition, Microsoft FrontPage 2002 Standard Edition
- kbnosurvey kbarchive kbprb KB266748