ModelStateDictionary.AddFormError Method
Adds an error message to the model state that is associated with the entire form.
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Parameters
- errorMessage
- Type: System.String
The error message.
Adds an error message to the model state that is associated with the entire form.