- 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
推薦閱讀
- Advanced Machine Learning with Python
- Progressive Web Apps with React
- Learning RabbitMQ
- Getting Started with PowerShell
- Python自然語言處理(微課版)
- Hands-On RESTful Web Services with Go
- Getting Started with LLVM Core Libraries
- Windows Embedded CE 6.0程序設計實戰
- Kubernetes源碼剖析
- 零基礎學C語言第2版
- 機器學習微積分一本通(Python版)
- Android系統下Java編程詳解
- 你好!Java
- Hadoop Blueprints
- Spring Boot 2+Thymeleaf企業應用實戰