CHAPTER 19
Helper Methods
In this chapter, we look at the helper methods, which allow you to package up chunks of code and markup so that they can be reused throughout an MVC Framework application. We start by showing you how to create your own helper methods. The MVC Framework comes with a wide-range of built-in helper methods, and we will explore them in this chapter and the chapters that follow, starting with the helper methods that you can use to create HTML form
, input
and select
elements.
Creating the Example Project
For this chapter, we have created a new Visual Studio MVC project called HelperMethods
using the Basic
template option. We ...
Get Pro ASP.NET MVC 4, Fourth 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.