Table of Contents

Class MessageExtensions

Namespace
Kentico.Forms.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll

Contains helper methods for rendering HTML for alert messages.

public static class MessageExtensions
Inheritance
object
MessageExtensions

Methods

ErrorMessage(HtmlHelperExtensionPoint, string)

Returns HTML markup with Error message.

public static IHtmlContent ErrorMessage(this HtmlHelperExtensionPoint htmlHelper, string message)

Parameters

htmlHelper HtmlHelperExtensionPoint

HtmlHelper extension.

message string

HTML encoded message.

Returns

IHtmlContent

InfoMessage(HtmlHelperExtensionPoint, string)

Returns HTML markup with Info message.

public static IHtmlContent InfoMessage(this HtmlHelperExtensionPoint htmlHelper, string message)

Parameters

htmlHelper HtmlHelperExtensionPoint

HtmlHelper extension.

message string

HTML encoded message.

Returns

IHtmlContent