Amazon.com: PC Books || Educational Software || Magazines
Amazon: Books-CA || Software-CA || Books-UK || Software-UK

HTML | Javascript | ASP | PHP | VBScript | SQL | Hardware | PC FAQ| WinXP|

Learn to Build, Upgrade, or Repair your Computer Ebook + PC Safety 101 kwwebservice.com Reasonably priced web development & hosting
ASP Basics
Introduction
Variables & Arrays
Sub & Functions
If Statements
Case Statements
Loop Statements
Date Objects
Form Processing
Text File Objects
Database Access
Adding Record
Updating Record
Deleting Record
Virtual Includes
Cookies
Server Variables
Creating Login Page
E-mail
ASP Books @
CA Amazon
UK Amazon
US Amazon

  :: Home
PC Topics
  :: Build A PC
  :: Windows XP
  :: PC Help
Tutorials
  :: HTML
  :: JavaScript
  :: ASP
  :: PHP
  :: VBScript
  :: SQL
Miscellaneous
  :: Code/Scripts
  :: Forum
  :: Links
  :: Contact us
  :: Tell A Friend
  :: In Somali
  ::
Web Articles
  Top Web Hosting
Reviews
  Processing
Online Card Payment Guide
  Domain name
registration & buying guide
  Getting
a website online guide
  Search Engine
submission & optimization tips
Netfirms Web Hosting
Free trial
Quality business correspondence.
Yahoo! Search Marketing

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
Listed @ ConsumerVote.com - The Consumer Rated Web Directory
PC Articles
  Computer Safety
prevent viruses & Spyware