Export (0) Print
Expand All

ModelStateDictionary.AddFormError Method

Adds an error message to the model state that is associated with the entire form.

Namespace:  System.Web.WebPages.Html
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

public void AddFormError(
	string errorMessage
)

Parameters

errorMessage
Type: System.String
The error message.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.
Show:
© 2014 Microsoft