ModelErrorMessage.Text Property

Definition

Gets or sets the text of the error message.

C#
[System.ComponentModel.Browsable(false)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public override string Text { get; set; }

Property Value

The error message text.

Attributes

Remarks

This property is not visible in the designer because it is set automatically from model state. The property value is not stored in view state because it is re-evaluated every time the page is rendered.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1