Eric Hexter is continuing his multi-part series on Opinionated Input Builders. He’s on a role!
They are expression-based, meaning they eliminate the need for most strings for Html Helpers in your views.
- Part 1 – Overview
- Part 2 – the Label
- Part 3 – the Source Code
- Part 4 – the Partial View
- Part 5 – the Required Field Indicator
They look like this:
<%=Html.Input(x=>x.FirstName)%>
And the output on the screen is:
First Name*: ______________ ex:John
Eric is collecting feedback and opinions now because this will eventually go into MvcContrib. It is being tested on a few small, low-risk projects at Headspring Systems to ensure that they suit a general need.