Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Include File in Simple HTML file?

Status
Not open for further replies.

nomi2000

ISP
Feb 15, 2001
676
CA
Dear Fellow Programmers
I have embed an .html file (which is included with include statement ) in .asp file quite easily but could i include on .html file in another .html file? when i did this its not working i am including this with include command?
please tell me if it could be done
Regards
Nouman
 
I think you have to rename your .htm pages to .shtml

will check this though

Tony
 
...or you could rename it with the asp-suffix. It will accept pages without asp-content. It might have a slight impact on performance, though... This is not a bug - it's an undocumented feature...
;-)
 
Dears
well i m quite dissapinted if it could not done in simple .html how people make some greate looking web pages in .html i know i could do this in .asp i have already done in it what i want is to do with .html
will look into .shtml though let me see if it works but what .shtml is?
Regards
Nouman
 
You might be able to fake it, by pointing your htmlfiles to the asp-dll using an ISAPI-filter. This is not a bug - it's an undocumented feature...
;-)
 
JOnax
To do such a simple task i have to go thru the thing which i always feared a complex thing to do isn't it ISAPI-filter i have read and see the code of it but its so hard to understand :)
Regards
Nouman
 
I used .shtml and it worked fine. It uses server side includes - SSI, and as long as you are working on a server, you will be able to see all your includes. I have IIS on my system, and it works just great.

Hope that helps.
 
Don't think that just because a web page has the extension .html that the server is handling it as "simple" html. I worked for a company that modified the server's file type handling so that the .html extension was actually processed as a .jsp.

You can do almost anything if you can control the way the files are processed. If you have access to the server, you could make .html be processed like .asp files. Again, there would be a performance hit like Jonax mentioned, but it would be possible.

Don't think that because others can do something, then it must be simple. There may be a lot of odd configurations and proprietary code behind the scenes. Einstein47
(Love is like PI - natural, irrational, endless, and very important.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top