|
|
|
Quality business correspondence.
|
|
|
|
Virtual Includes
The virtual include or include file is a command that instructs the
browser to display a text file (.txt, .html, .htm, .shtml, .asp, etc). Virtual is used if the impended file is located in different directory.
For example, if you want display standard or same information more than
one page. You can create seperate file for this information
and include whatever other file you want the content to be displayed. It makes easier
to maintain the information by changing one file instead of going
through all the files. Here is how you include file virtualy
<!--#include virtual="/files/file.asp" -->
or you can include it this way if the file is located in the current directory
<!--#include file="file.asp" -->
Make sure that your server supports SSI (Server Side Includes) and
your include command is outside of your asp tag.
Here is a typical asp page that uses SSI:
<html>
<head>
<title> Virtual Includes </title>
</head>
<body>
<% if login<> "" then %>
<!--#include virtual="/member.asp" -->
<% else %>
<!--#include virtual="/notMember.asp" -->
<% end if %>
<%
response.write "write here any other contents after the member or notMember file contents are displayed and then display the contents of buttonStandard file"
%>
<!--#include virtual="/home/buttonStandard.asp" -->
</body>
</html>
|
Delete Data
Cookies
|
|