November 2016
Intermediate to advanced
326 pages
6h 1m
English
Let us continue with the application that we built in the previous chapter. To do server-side validation, we need to do the following:
ViewModels model class. The input data is validated against this metadata and the model state is updated automatically.view method to display the validation message for each of the fields. The span tag helper with the asp-validation-for attribute will be used to display the validation error message.view method is rendered again with the validation error message so that ...Read now
Unlock full access