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 ...

Get Microsoft Visual Studio 2015 Unleashed, Third 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.