Skip to content

BannerControl

Renders the shared Business Online site banner by loading /Resources/SiteBanner.xml and substituting placeholders for the page title and dynamic links, with separate print and internal/external display variants BR-V2-004.

Purpose

  • Loads and interprets the XML banner definition rather than hard-coding markup BR-V2-004.
  • Suppresses all output when the banner path cannot be resolved or when the control is in design mode BR-V2-003.

Context

  • Namespace: SAIF.Presentation.Web.Controls.V2
  • Assembly/package: SAIF.Presentation.Web.Controls.V2 (packaged in SAIF.BOF.Presentation.Web.Infragistics111.nuspec)

Public members

Member Signature Purpose
PrintPageTitle Public Property PrintPageTitle As String Text substituted for the [TITLE] placeholder in both banner variants.
ShowInternalDisplayBanner Public Property ShowInternalDisplayBanner As Boolean Controls whether the display (non-print) banner section renders at all BR-V2-007.
DisplayBannerLogout Public Property DisplayBannerLogout As Boolean Opts the logout link into the rendered banner when the application is not itself the login page BR-V2-010.
LoggingIn Public Property LoggingIn As Boolean Switches the feedback link between a plain XML-defined link and a sized pop-up window BR-V2-011.
Render Public Overrides Sub Render(writer As HtmlTextWriter) Executes the XML-driven banner rendering pipeline described in Render the site banner.

Behavioral notes

  • In design mode, renders a static placeholder <div> instead of evaluating the XML banner*.

Constraints and usage notes

  • Requires the banner definition XML to exist at the resolved site path; the control cannot self-recover if the file is missing BR-V2-003.

Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts.

Sources

  • SAIF.Presentation.Web.Controls.V2/Banner.vb