Surendra Sharma

Surendra Sharma

Search This Blog

Sunday, March 8, 2015

Dynamic Binding and Static Binding in Sitecore

You can present you data in Sitecore layouts in two ways by using binding. There are two types of binding technics in Sitecore

·         Dynamic Binding
·         Static Binding

If you are binding anything in placeholder from Sitecore then it’s called Dynamic Binding. Here you need to map placeholder and control from Sitecore Layout details section. For example below 3 placeholders are example of dynamic binding.

<sc:placeholder runat="server" key="HeadSection" />
<sc:placeholder runat="server" key="MidSection" />
<sc:placeholder runat="server" key="TailSection" />

If you are specifying sublayout of controls then its called Static binding. Here you don't need to map placeholder and control from Sitecore Layout details section. For example below 3 placeholders are example of static binding.   

<sc:Sublayout ID="scHeadSection" Path="~/Common/HeadSection.ascx" runat="server" />
<sc:Sublayout ID="scMidSection" Path="~/Common/MidSection.ascx" runat="server" />
<sc:Sublayout ID="scTailSection" Path="~/Common/TailSection.ascx" runat="server" />


Please leave your comments or share this tip if it’s useful for you.

1 comment:

  1. Hey thanks for sharing an article.



    Could you please tell what is the use of RenderingID attribute?

    ReplyDelete