Ads are one reason you may want to use include files. Perhaps your advertising strategy does not require the use of an ad rotator. Many of the ad companies today use code that is rather difficult to rotate. Here is where an include file would come in handy.
Nuts Own Code

Asp Directory

Nuts Web Search
Web Directory
Web Search

Nuts ASP Code
Functions
Scripts
Tutorials
Wizards
Fonts
Download Fonts
Download Dll Files
Dll Files
Relaxing Games
Online Games
Take Our Poll
Do you use .Net?
Yes
No
Not Yet
Dot What?
Really, Take It!
Get The Source
About Nuts4Asp
Privacy
Contact Us
Arts
Movies, Television, Music
Business
Jobs, Industries, Investing
Computers
Internet, Software, Hardware
Games
Video Games, RPGs, Gambling
Health
Fitness, Medicine, Alternative
Home
Family, Consumers, Cooking
Kids and Teens
Arts, School Time, Teen Life
News
Media, Newspapers, Weather
Reference
Maps, Education, Libraries
Regional
US, Canada, UK, Europe
Science
Biology, Psychology, Physics
Sports
Baseball, Soccer, Basketball
World
Deutsch, Español, Français, Italiano, Japanese, Nederlands, Polska, Svenska
Help build the largest human-edited directory of the web
Take a look at the ads on this page. If you were to cruise around this site you would notice that all the pages have banner ads in the same location of each page. With some ads they expire after a given amount of time. Rather than having to open every page in my website, I simply open the include file for the particular ad I need to change, insert the new ad code and save it. Now all of the pages are updated in just a minute or two. Simple huh?

Here's what to do. Create a directory in the root of the web to place your include files in a directory named include. You can name it anything you like and it's probably best to name it something other than include but, for this demonstration we will call it include. Next, create a page named ads.htm and place your ad code in it. Now save this page in the include directory. 

Now open up the pages you want to display the ad on and decide where it should go. In the html of the page insert this line:

<!-- #Include Virtual="include/ads.htm" -->

That's all there is to it. Now you can update all your pages at one time by simply editing the one page named ads.htm

More ways to use include files.

Bad or missing query parameters in request.

Copyright © 2001-2008 Nuts4Asp.com
All other names used are property or copyright of their respective owners.