Using Include FIles
Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 17840
Total Votes: 144 votes
Category: ASP/Content Management
Submitted on: 2008-03-05 04:31:01
Submitted By: Devesh Khanna
Description:Include files allow you to take pieces of redundant code or html and place them on a page by themselves. This is practical approach in keeping maintenance down to a minimum in a variety of ways. Below will give you an idea of what to use them for.
1. Database Connections
5. Advertising Slots
These are just some of the scenarios in which an include file could be beneficial. All it takes is one line to include a file on a page. For example, we have a bunch of info we want on all our pages that may need to change from time to time. First we will create a page named stuff.asp and put all that information on it. Now we put that in a directory we will call include. More detail...