Build an HTML Helper Library for ASP.NET MVC 5

by Paul D. Sheriff

Creating your own HTML Helpers simplifies your MVC coding when working with Bootstrap and HTML 5. Moving this code into Helpers can reduce the runtime errors and CSS errors you might otherwise encounter.

What you'll learn

Paul's Training Company has developed a web site to input their product data. Your boss wants you to add a login screen and more pages to the site. Unfortunately, he needs it done quickly, so that means you need to work smarter. He wants all the controls to use Bootstrap and take advantage of HTML 5. Working with the limited set of HTML Helpers in MVC means you have to add a lot of custom attributes. This takes more time to code and leads to potential runtime errors. If you had more flexible HTML Helpers that added HTML5 and Bootstrap CSS for you, this would speed up development and testing. In this course, you learn to build a set of MVC HTML Helpers to do just this.

Table of contents

About the author

Paul loves teaching and technology, and has been teaching tech and business topics for over 30 years. Paul helps clients develop applications, and instructs them on the best use of technology.

Ready to upskill? Get started