protected override void Render(System.Web.UI.HtmlTextWriter writer) { // Hide actions panel if no actions are present if (!HeaderActions.IsVisible() && (plcActions.Controls.Count == 0) && (plcBeforeActions.Controls.Count == 0)) { pnlActions.Visible = false; } base.Render(writer); }