private void AddUserControls() { Controls.admin.adminheader adminHeader = (Controls.admin.adminheader)LoadControl(Util.GetUrl("/controls/admin/adminheader.ascx")); this._adminHeader = adminHeader; if (this.AdminHeaderPlaceHolder != null) { this.AdminHeaderPlaceHolder.Controls.Add(adminHeader); } Controls.admin.adminfooter adminFooter = (Controls.admin.adminfooter)LoadControl(Util.GetUrl("/controls/admin/adminfooter.ascx")); this._adminFooter = adminFooter; if (this.AdminFooterPlaceHolder != null) { this.AdminFooterPlaceHolder.Controls.Add(adminFooter); } }
private void AddUserControls() { Controls.admin.adminheader adminHeader = (Controls.admin.adminheader)LoadControl(Util.GetUrl("/controls/admin/adminheader.ascx")); this._adminHeader = adminHeader; if (this.AdminHeaderPlaceHolder != null) this.AdminHeaderPlaceHolder.Controls.Add(adminHeader); Controls.admin.adminfooter adminFooter = (Controls.admin.adminfooter)LoadControl(Util.GetUrl("/controls/admin/adminfooter.ascx")); this._adminFooter = adminFooter; if (this.AdminFooterPlaceHolder != null) this.AdminFooterPlaceHolder.Controls.Add(adminFooter); }