Fork me on GitHub

Display - Basic Sample

annotation(s) model property model value @Html.DispayFor <display asp-for>
UIHint("_PersonLink")
Id 1 1 1
-
FirstName Vira Vira Vira
-
LastName Duran Duran Duran
UIHint("CustomDate")
BirthDate 11/28/1978 12:00:00 AM 1978-11-28 1978-11-28
UIHint("MailTo")
Email sit.amet@necanteMaecenas.co.uk sit.amet@necantemaecenas.co.uk sit.amet@necantemaecenas.co.uk
DisplayFormat("{0:C}")
Salary 15587 $15,587.00 $15,587.00
-
FavoriteColor red
-
FullName Vira Duran Vira Duran Vira Duran
Markup
<display asp-for="Id" />
<display asp-for="FirstName" />
<display asp-for="LastName" />
<display asp-for="BirthDate" />
<display asp-for="Email" />
<display asp-for="Salary" />
<display asp-for="FavoriteColor" />
<display asp-for="FullName" />