How to include .ASP in an index.html file

J

JTT

We have developed a simple ASP page that will display a scrolling text
message with siren lights on either sides for our Intranet page to aler users
of problems. The text is pulled from a access database and works great
independently of our site.

We want to include the alert.asp page in the index.html of our Intranet
site. So I'm trying to use the INCLUDE Component on the alert.asp but when I
publish and view the index.html it just show the error [FRONTPAGE COMPONENT].

Is there a way to incluse an asp using the include function? If so, how?

Thanks in advance.

JTT
 
T

Thomas A. Rowe

You can not include asp code in a .htm(l) page unless you modify the server to process .htm(l) pages
as .asp pages. The easiest solution is to rename you home page to default.asp, then do a ASP (SSI)
include.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
R

Ratatooie

By definition, an .htm or .html file won't be processed by the server as
ASP. So any ASP code in the file will be ignored. This is without reguard
for what method or what code you have included by other means.

The file name MUST end in .ASP for it to work.

So just change the file name to "index.asp" (and change the default file
name on the server if necessary) to get it to work, then just use an include
file to put the code in or place it in directly).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top