5 Working with forms: Model binding
This chapter covers
- Model binding in Razor Pages
- Binding complex objects easily
- Protecting your application by validating user input
- Leveraging data annotation attributes to manage validation
At the beginning of this book, I congratulated you for choosing ASP.NET Core Razor Pages in Action if you wanted to learn how to build “page-focused interactive web applications.” I didn’t really expand on the meaning of “interactive” at the time; essentially, an interactive web application is one in which users can provide input and affect the behavior of the application. In the last chapter, you saw how a user can alter a URL to interact with the application, causing the City page to display different content based ...
Get ASP.NET Core Razor Pages in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.