function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
santhoshreddy vanchasanthoshreddy vancha 

what is difference between include ,define and insert in visual force ?

DeveloperDeveloper
Hello Santhoshreddy,

Please find out bellow links.

Include.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_include.htm
Define.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_define.htm
please let me know it's useful or not..

Thanks & Regards 
Gopal M.
Amit Chaudhary 8Amit Chaudhary 8
Please check below post for same
1) http://amitsalesforce.blogspot.com/2015/02/defining-templates-with-apexcomposition.html

<apex:composition> 
An area of a page that includes content from a second template page. Template pages are Visualforce pages that include one or more <apex:insert> components. The <apex:composition> component names the associated template, and provides body for the template's <apex:insert> components with matching <apex:define> components. Any content outside of an <apex:composition> component is not rendered.

<apex:define> 
A template component that provides content for an <apex:insert> component defined in a Visualforce template page.

<apex:insert> 
A template component that declares a named area that must be defined by an <apex:define > component in another Visualforce page. Use this component with the <apex:composition > and  <apex:define > components to share data between multiple pages.


NOTE:-  
1) All templates defined using <apex:composition> must have one or more child <apex:insert> tags. 
2) An <apex:insert> tag indicates to pages that import the template that a section needs a definition. 
3) Any Visualforce page that imports a template using <apex:composition> must use <apex:define> to specify the content of each <apex:insert> section of the template.