ASP Code Is Displayed in Browser (266748)
The information in this article applies to:
- Microsoft FrontPage 2000
- Microsoft FrontPage 2002
This article was previously published under Q266748 SYMPTOMS
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.
CAUSE
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.
-or-
- 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.
RESOLUTION
To resolve this problem, use the appropriate method for your situation.
Install the ASP Engine from Microsoft
Before 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.
Modification Type: | Minor | Last Reviewed: | 8/11/2004 |
---|
Keywords: | kbprb KB266748 |
---|
|