Category: ASP

A server-side include file is a good way to write code once, which will be repeated over several Web pages, such as making a uniform header. The include file can contain HTML, and both client-side or server-side scripts, and images, and will have the extension of either .inc or .asp. (If using ASP code in the SSI file, the SSI file will have to use the .asp extension. If not using the ASP code in the SSI file, either extension is fine.) The include file is stored outside of the Web pages but will be called from any Web page having the .asp extension. If you store the SSI file in a folder just for your SSI files, be sure to use the relative path (url) when calling it from a Web page situated in a different folder:

<--#include file="../my_ssi/filename.asp" -->

ASP

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.