
An error display component that allows rich rendering of individual messages as well as validation error messages.
Object should be passed in to view end rendered with or via a view.
Relies on several CSS Styles: .errordisplay, errordisplay-text, errordisplay-warning-icon, errordisplay-info-icon The icon links link to images.
Westwind.Web.Mvc.ErrorDisplay
public class ErrorDisplay : object
Class Members
Member | Description | |
---|---|---|
![]() |
Constructor |
|
![]() |
ErrorDisplayType |
|
![]() |
AddMessage |
Adds an individual model error public void AddMessage(string errorMessage, string control) |
![]() |
AddMessages |
Adds ModelState errors to the validationErrors public void AddMessages(ModelStateDictionary modelErrors, string fieldPrefix) public void AddMessages(ValidationErrorCollection validationErrors, string fieldPrefix) |
![]() |
Render |
Method public HtmlString Render(int width, bool center) |
![]() |
ShowError |
public void ShowError(string errorMessage) |
![]() |
ShowMessage |
public void ShowMessage(string message) |
![]() |
DisplayErrors |
Holds a modelstate errors collection |
![]() |
HasMessage |
Determines whether there is a message present. |
![]() |
HtmlEncodeMessage |
Flag that determines whether the message is displayed as HTML or as text. By default message is encoded as text (true). |
![]() |
Message |
The message that is displayed |
![]() |
Timeout |
Timeout in milliseconds before the error display is hidden |
Requirements
Namespace: Westwind.Web.MvcAssembly: westwind.web.mvc.dll
© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic