示例#1
0
 /// <summary>
 /// Error message
 /// </summary>
 /// <param name="htmlHelper">HtmlHelper</param>
 /// <param name="textOrHtml">text or html</param>
 /// <param name="isHtml">indicates the textOrHtml is html or plain text</param>
 /// <param name="htmlAttributes">html attributes</param>
 /// <returns>MvcHtmlString</returns>
 public static MvcHtmlString ErrorMessage(this HtmlHelper htmlHelper, string textOrHtml, bool isHtml = false, object htmlAttributes = null)
 {
     return(ControlExtension.Message(htmlHelper, MessageType.Error, textOrHtml, isHtml, htmlAttributes));
 }