- Modern Web Development with ASP.NET Core 3
- Ricardo Peres
- 185字
- 2021-06-18 18:36:03
Views
After we've talked about how the application works from the server side, it's time to look at the client side. In this chapter, we will cover the visual side of a Model-View-Controller (MVC) app: the views.
A view in this context is a combination of HyperText Markup Language (HTML) and code that executes on the server side and whose output is combined and sent to the client at the end of the request.
To help achieve consistency and reusability, ASP.NET Core offers a couple of mechanisms, page layouts, and partial views that can be very handy. Also, because we may want to support different languages and cultures, we have built-in localization support, which helps provide a better user experience.
In this chapter, we will learn the following:
- What are Razor views
- What are partial views
- What are view layouts
- What are the base Razor view classes
- How Razor finds view files
- How to inject services into a view
- What is a location expander
- How to perform view localization
- How to mix code and markup on a view
- How to enable view compilation upon publishing
推薦閱讀
- Learning Python Web Penetration Testing
- HTML5移動Web開發技術
- Python數據分析入門與實戰
- JavaScript:Functional Programming for JavaScript Developers
- CentOS 7 Server Deployment Cookbook
- Learning ASP.NET Core 2.0
- 羅克韋爾ControlLogix系統應用技術
- 基于免疫進化的算法及應用研究
- Python爬蟲開發與項目實戰
- 老“碼”識途
- Getting Started with NativeScript
- Mastering Android Development with Kotlin
- Mastering ROS for Robotics Programming
- Android應用開發實戰(第2版)
- 數據結構:Python語言描述