Include file Vs virtual

Results 1 to 2 of 2

Thread: Include file Vs virtual

  1. #1
    Join Date
    Dec 1969

    Default Include file Vs virtual

    What is the difference between file and virtual in<BR>&#060;!-- #include x ="xyz.asp" --&#062;<BR>and is one better then the other and if possible could I have an example of virtual explained.<BR><BR>Thanx<BR>Jess

  2. #2
    Join Date
    Dec 1969

    Default Virtual means that it is in a Virtual directory...

    ...created in IIS. For ASP includes, this is definitely the way to go. Why?<BR><BR>Because a virtual directory can be referenced WITHOUT relative addressing which makes nested includes much much easier to deal with.<BR><BR>&#060;!--#include virtual="includes/myinclude.asp"--&#062;<BR><BR>This can now be nested and referenced anywhere with the folder hierarchy of your site without changing the path to the include.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts