Coding for the UI (Views and Related Web UI Elements)

Writing a UI view can seem like a complex endeavor. You need to know a lot of different server-side and web technologies to make everything work. This includes client-side JavaScript, HTML markup, CSS for visual styling, server-side Razor code, multiple client-side JavaScript libraries, page layouts and partial views, and even more. Thankfully, Visual Studio and ASP.NET help to abstract a lot of this complexity so we can focus on building our actual pages for rendering.

This section starts with the basics of building a view in ASP.NET 5 MVC, including HTML, Razor, helper methods, page layout, and the like. We then look at using these basics to build the sample pages based on the CustomerController (and related model) created in the previous section. Of course, if you are already familiar with many of these concepts, you can skip this section and go to “Creating the Customer Example Pages.” We cover JavaScript in more detail in the coming chapters.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset