protected override void CreateChildControls() { SilverlightWebControl _slwc = new SilverlightWebControl() { Source = "SiteAssets/TestDisposalRequest/DisposalRequestWebPart/DisposalRequestWebPart.xap", }; Controls.Add(_slwc); }
/// <summary> /// Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering. /// </summary> protected override void CreateChildControls() { try { Controls.Add(m_SelectedItemTitle); Controls.Add(m_HiddenFieldData); m_slwc = new SilverlightWebControl() { Source = CommonDefinition.SilverlightCheckListWebPartPath }; Controls.Add(m_slwc); } catch (Exception ex) { this.Controls.Add(new ExceptionMessage(ex)); } }
/// <summary> /// Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering. /// </summary> protected override void CreateChildControls() { try { Controls.Add(m_SelectedItemTitle); Controls.Add(m_HiddenFieldData); m_SilverlightWebControl = new SilverlightWebControl() { Source = CommonDefinition.SilverlightGenerateSadConsignmentHost }; Controls.Add(m_SilverlightWebControl); } catch (Exception ex) { this.Controls.Add(new ExceptionMessage(ex)); } }