Exemplo n.º 1
0
 public void SetStatus(string content, bool isHTML, AlertBoxType alertType)
 {
     AlertType = alertType;
     AlertHolder.CssClass += " " + GetTypeClass();
     if (isHTML)
     {
         Content.InnerHtml = content;
     }
     else
     {
         Content.InnerText = content;
     }
 }
Exemplo n.º 2
0
 public void SetStatus(string message, bool isHTML, AlertBoxType type)
 {
     Literal = message;
     Type = type;
     Update();
 }
Exemplo n.º 3
0
 public void SetStatus(string message, AlertBoxType type)
 {
     SetStatus(message, false, type);
 }
Exemplo n.º 4
0
        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);
        }