20 Building custom MVC and Razor Pages components
This chapter covers
- Creating custom Razor Tag Helpers
- Using view components to create complex Razor views
- Creating a custom
DataAnnotations
validation attribute - Replacing the
DataAnnotations
validation framework with an alternative
In the previous chapter, you learned how to customize and extend some of the core systems in ASP.NET Core: configuration, dependency injection, and your middleware pipeline. These components form the basis of all ASP.NET Core apps. In this chapter we’re focusing on Razor Pages and MVC/API controllers. You’ll learn how to build custom components that work with Razor views. You’ll also learn how to build components that work with the validation framework used by both ...
Get ASP.NET Core in Action, Second Edition 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.