Static Binding

Static Binding

Static Binding

  • The practice of hard-coding a reference to a control in a layout or sublayout
  • Does not allow for the substitution of controls on layouts and sublayouts at the time the page is built
  • Does not enable layouts and sublayouts to be reused for different page displays across the site
  • The layout or sublayout cannot be reused with other controls; a new layout or sublayout would need to be created and used

Static Binding Implementation

  • Declarative syntax for the control is added to the layout or sublayout without reference to a placeholder
  • The control is placed directly on a layout or sublayout  using an IDE, such as Visual Studio
  • No additional configuration is required once a reference to the control exists on the layout or sublayout
  • Any item that uses the layout or sublayout will also get the statically bound controls - the controls will render when the layout or sublayout gets rendered

Sources