O'Reilly logo

Pro ASP.NET MVC 4, Fourth Edition by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 19

Image

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required