|
|
|
ASP
Include Files
To include a file in ASP, use this SSI code:
CODE |
<!--#include file="folder/file_name.asp"-->
|
Or you can use this code to include a virtual path:
CODE |
<!--#include virtual="folderfile_name.asp"-->
|
Including files by querystring:
CODE |
<%
Dim inc
inc = Request.QueryString("id")
%>
<!-- Put this code where you want to show the file.
Remember to have the code above, in the top of the
page, above the code below. -->
<% Server.Execute(inc & ".asp") %>
|
To select which file you want to show, put a query string in
the end of the file name, like this; file.asp?id=include,
where include.asp is the file who will be included.
Tutorial By Xtasy
|
|