It’s All Extension Methods Baby When you create a View using ASP.NET MVC, you set it to inherit from System.Web.Mvc.ViewPage<>, where the passed-in type is a data class shared between the Controller and ViewPage (read more on this here). At that point it’s all up the UI (the HTML View), and we haven’t forgotten you :) . To that end we’ve created a set of Extension Methods, currently called the “MVC Tookit”, that you can use to push the data from your controller to your screen, wrapped in some nice HTML controls.
The UI Helper library (currently called System.Web.Mvc.Toolkit) extends the HtmlHelper class, which hangs from ViewPage.Html. When you download the MVC bits (later this week), in there will be a binary file which you can add to your project in order to use the new UI bits (this stuff is slated to be combined with the core MVC bits in the next drop). To use it, you simply reference the Toolkit dll, and then in your Web.Config, add a reference to the namespace:
No comments yet, be the first one to post comment.