Print Page | Close Window

import html from file into table?

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=4111
Printed Date: 29 March 2026 at 9:19am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: import html from file into table?
Posted By: copenhagen
Subject: import html from file into table?
Date Posted: 07 July 2003 at 10:14am
Is it possible to import html data from a file into
a table?

I'm trying to cut down on my page sizes, and I'm finding that if I change the navigation pane on one page I then have to go and change EVERY page to match it... Instead I would like to just have ONE file that contains the code for the navigation pane that I can load into each page as it comes up???

Any ideas?



Replies:
Posted By: KCWebMonkey
Date Posted: 07 July 2003 at 11:12am

Use server side includes.

Just create a file with the repeated code, and then insert that file into your web page like this:

<!-- #INCLUDE FILE="yourfile.inc" -->

ps - your pages need to have an .asp extension to be able to do this.



Posted By: copenhagen
Date Posted: 07 July 2003 at 11:35am
EEK i need to learn some more stuff I think.

Can you give me an example??? If not thanks for the first reply!

-Cope


Posted By: copenhagen
Date Posted: 07 July 2003 at 11:37am
What are Server Side Includes?

Server Side Includes allow you to write some commonly used code once and have the server insert it into the pages for you. In other words an include file has code that you would like to reuse. Any ASP or SHTML page that wants to use the code in the include file will have a special line that indicates the place holder for the code.
This code looks like: <!--#include virtual="/path" -->
This results in the server taking the entire content of the file and inserts it into the page, replacing the <! -- #include ..--> line.


check this out
http://www.smartwebby.com/web_site_design/server_side_includes.asp


THANKS MANG!


Posted By: KCWebMonkey
Date Posted: 07 July 2003 at 4:12pm
I love it when someone can solve their own questions!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net