Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ModelStateKey Property
Collapse the table of content
Expand the table of content

ModelErrorMessage.ModelStateKey Property

.NET Framework 4.6 and 4.5

Gets or sets the key for which the first error from the page's model state is to be displayed.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public string ModelStateKey { get; set; }

Property Value

Type: System.String
The key.

.NET Framework

Supported in: 4.6, 4.5
© 2015 Microsoft