11.1.4.6 Adding Model Validation; Listing 11-14. Adding Validation Messages to the Edit.cshtml File
This commit is contained in:
parent
1e70fef3a7
commit
f5fb773395
@ -30,6 +30,7 @@
|
||||
@Html.TextBox(property.PropertyName, null,
|
||||
new { @class = "form-control" })
|
||||
}
|
||||
@Html.ValidationMessage(property.PropertyName)
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user