It’s rare to find an application that doesn’t deal with data in some way, so it’s probably no surprise that ASP.NET MVC provides excellent support at all levels of the framework to make working with data much easier. In this chapter, we’ll take a look at the tools that provide that support and show you how to leverage them in your data-driven scenarios by adding this functionality to the EBuy reference application.
Since EBuy is an auction site, the site’s most important scenario is allowing users to create auction listings that contain the details of the items they would like to sell. So, let’s take a look at how ASP.NET MVC can help us support this important scenario.
While ASP.NET MVC encourages you to author much of your HTML markup
“by hand,” the framework offers an array of HTML helpers to help generate
HTML form markup, such as
Html.HiddenField, just to name a few. ASP.NET
MVC also offers a few “smarter” helpers, such as
Html.EditorFor, that dynamically determine the appropriate HTML based on ...