Difference between static binding and dynamic binding in sitecore
Prem Murmu
on
1/19/2021 3:55:13 PM
Static binding | Dynamic binding |
Static binding means adding a rendering to a page in a static way or raw way. | Dynamic binding means that you will have a placeholder to put your renderings into on a page. |
In an mvc view: @Html().RenderAction("Controller", "Action"); | In an mvc view: @Html().Sitecore().Placeholder("main") |
We are not able to change rendering without editing the code. | We will be able to "dynamically" add any rendering. |
Use static bindigs for things like site header rendering, etc (something that should not be removed by editors mistake and is not supposed to be changed). | Use dynamic bindings, because of their flexibility.It is supposed to used where content or any component rendering is to be rendered dynamically. |
0 Comments on this post
Comments(0)||Login to Comments
- see more..
Categories
ALLAsp.Net (3)
Sitecore (11)
Issues Resolved (9)
Sitecore 9.3 (2)
International Business (1)
Innovations in Industries (3)
Supply Chain Management (1)
Industrial Engineering (14)
Sitecore 10 (4)
Sharepoint (1)
Azure (4)
Cloud Computing (1)
Online Courses (1)
Online Resources (2)
C# (1)
Blazor WebAssembly (2)
Sitecore form (1)
MS Sql Server (1)
Angular 11 (2)
Automobile Engineering (5)
Sitecore powershell (1)
Devops (2)
Microservice Architecture (1)
Sitecore Interview Questions (2)
Dotnet interview questions (1)
Sitecore useful links (1)
Privacy&Cookies (2)
Solr Search (2)
JavaScript (1)
sitecore xm cloud (3)