protected override void Render(HtmlTextWriter writer) { HorizontalAlign = HorizontalAlign.Center; Label label = new Label(); label.ID = "lblLastAction"; BackColor = Color.Gold; Style.Add("padding-left", "100px"); Style.Add("padding-right", "100px"); Style.Add("padding-top", "2px"); Style.Add("padding-bottom", "2px"); Style.Add("margin-top", "12px"); if (ActionProcessor.IsError) { BackColor = Color.LightPink; } if (ActionProcessor.LastAction != null) { label.Text = ActionProcessor.LastAction; Controls.Add(label); ProcessLastEntity(); if (DoReset) { ActionProcessor.Clear(); } Style.Remove("display"); } else { Style.Add("display", "none"); } base.Render(writer); }