How do I code a MVC3 Helper
- by Mike Clarke
I’ve just build my first Helper in MVC, it’s very basic and just displays a string where ever I use it. So it’s a .cshtml file in my App_Code folder, I think that is how it's supposed to be set up, with the following code in it,
@helper DisplaySelect() {
@:This text is coming from an helper class.
}
Now I am a wiz with helpers how do I make…