Xpode.com        Click here to Print this article.

include Directive

The #include Directive : It is used when we want to add some file text in another file. It is used in cases where common text or content needs to be shown on page.
We can add content in htm, html files and can call that page in target page.

We will have to write below code to call htm file.


            < !-- # include file = "OrganizationalSetup.htm" -->
   

We can also change path of file if required.

            < !-- # include file = "../../OrganizationalSetup.htm" -->
   

Same also can be done below, use virtual instead of file.

            < !-- # include virtual = "OrganizationalSetup.htm" -->
   

virtual keyword to indicate a path beginning with a virtual directory. and file keyword indicate a relative path. A relative path begins with the directory that contains the including file.

http://
http://

Contributed by:
Rohit kakria
I am software developer

Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=594

Click here to go on website