/// <summary> /// Raises the <see cref="E:System.Web.UI.Control.Init" /> event. /// </summary> /// <param name="e">An <see cref="T:System.EventArgs" /> object that contains the event data.</param> protected override void OnInit(EventArgs e) { base.OnInit(e); this.Control = NavigationProvider.Instance(this.ProviderName); this.Control.ControlID = string.Format("ctl{0}", this.ID); this.Control.Initialize(); }
protected override void OnInit(EventArgs e) { base.OnInit(e); this.m_objControl = NavigationProvider.Instance(this.ProviderName); this.Control.ControlID = "ctl" + this.ID; this.Control.Initialize(); this.spActions.Controls.Add(this.Control.NavigationControl); }
/// ----------------------------------------------------------------------------- /// <summary> /// OnInit runs during the controls initialisation phase /// </summary> /// ----------------------------------------------------------------------------- protected override void OnInit(EventArgs e) { _ProviderControl = NavigationProvider.Instance(ProviderName); ProviderControl.PopulateOnDemand += ProviderControl_PopulateOnDemand; base.OnInit(e); ProviderControl.ControlID = "ctl" + ID; ProviderControl.Initialize(); Controls.Add(ProviderControl.NavigationControl); }
protected override void OnInit(EventArgs e) { m_objControl = NavigationProvider.Instance(this.ProviderName); Control.PopulateOnDemand += new NavigationProvider.PopulateOnDemandEventHandler(Control_PopulateOnDemand); base.OnInit(e); Control.ControlID = "ctl" + this.ID; Control.Initialize(); this.Controls.Add(Control.NavigationControl); }
protected override void OnInit(EventArgs e) { using (new DNNContext(this)) { base.OnInit(e); this.navProvider = (DDRMenuNavigationProvider)NavigationProvider.Instance("DDRMenuNavigationProvider"); this.navProvider.ControlID = "ctl" + this.ID; this.navProvider.MenuStyle = this.MenuStyle; this.navProvider.Initialize(); this.Controls.Add(this.navProvider.NavigationControl); } }