protected override WebPartChrome CreateWebPartChrome() { if (null == this._chrome) { if (!this.RenderDivs) { this._chrome = new BaseChrome(this, base.WebPartManager); } else { this._chrome = new DivChrome(this, base.WebPartManager); } } return this._chrome; }
protected override void OnInit(EventArgs e) { base.OnInit(e); this._chrome = this.CreateWebPartChrome(); }