private void AddMessages(PageMessageBoxMode messageType, System.Text.StringBuilder messagesToSend) { string cssClass = string.Empty; switch (messageType) { case PageMessageBoxMode.ErrorMessage: cssClass = "WebPageMessageError"; break; case PageMessageBoxMode.Information: cssClass = "WebPageMessageInformation"; break; case PageMessageBoxMode.OK: cssClass = "WebPageMessageOK"; break; case PageMessageBoxMode.Question: cssClass = "WebPageMessageQuestion"; break; case PageMessageBoxMode.Warning: cssClass = "WebPageMessageWarning"; break; } Literal currOutput = new Literal(); currOutput.Text = string.Format("<ol class='{0}'>{1}</ol>", cssClass, messagesToSend); this.Controls.Add(currOutput); }
public ValidationMessage(PageMessageBoxMode _type, string _message) { Type = _type; Message = _message; }
public ValidationMessage(PageMessageBoxMode _type, string _message) { Type = _type; Message = _message; }
private void AddMessages(PageMessageBoxMode messageType, System.Text.StringBuilder messagesToSend) { string cssClass = string.Empty; switch (messageType) { case PageMessageBoxMode.ErrorMessage: cssClass = "WebPageMessageError"; break; case PageMessageBoxMode.Information: cssClass = "WebPageMessageInformation"; break; case PageMessageBoxMode.OK: cssClass = "WebPageMessageOK"; break; case PageMessageBoxMode.Question: cssClass = "WebPageMessageQuestion"; break; case PageMessageBoxMode.Warning: cssClass = "WebPageMessageWarning"; break; } Literal currOutput = new Literal(); currOutput.Text = string.Format("<ol class='{0}'>{1}</ol>", cssClass, messagesToSend); this.Controls.Add(currOutput); }