public void SetStatus(string content, bool isHTML, AlertBoxType alertType) { AlertType = alertType; AlertHolder.CssClass += " " + GetTypeClass(); if (isHTML) { Content.InnerHtml = content; } else { Content.InnerText = content; } }
public void SetStatus(string message, bool isHTML, AlertBoxType type) { Literal = message; Type = type; Update(); }
public void SetStatus(string message, AlertBoxType type) { SetStatus(message, false, type); }
public void AddAlert(string content, bool isHTML, AlertBoxType alertType) { Alert alert = (Alert)LoadControl("~/Source/Controls/Alert.ascx"); alert.AlertType = alertType; alert.Id = new Guid(); alert.SetStatus(content, isHTML, alertType); AlertContainer.Controls.Add(alert); }