This topic has not yet been rated - Rate this topic

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.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.