Код: Выделить всё
public class ValidationModel
{
#region Properties
[Display(Prompt = "type a PostCode here")]
public string PostCode { get; set; }
}
Код: Выделить всё
@using (Html.BeginForm())
{
@Html.LabelFor(m => m.PostCode)
@Html.TextBoxFor(m => m.PostCode)
}
Код: Выделить всё
Подробнее здесь: https://stackoverflow.com/questions/637 ... -dataannot
Мобильная версия