Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     




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.
Share this article   |    Print    |    Article read by 2952 times
Author:
Rohit kakria
I am software developer
Related Articles: No related article
Related Interview Questions: No related interview question