ASP.NET MVC 3: New @model keyword in Razor
page 1 of 7
Published: 19 Oct 2010
Unedited - Community Contributed
Abstract
This article examines the usage of the new @model directive which is now included with the ASP.NET MVC 3 Razor view engine in detail with the help of relevant screenshots. Scott also explains model referencing with both ASP.NET MVC 3 Preview and Beta with special reference to @model syntax.
by Scott Guthrie
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 11076/ 162

Introduction

Republished with Permission - Original Article

Two weeks ago we shipped the ASP.NET MVC 3 Beta Release.  It supports "go live" deployments, and includes a bunch of nice improvements/enhancements.  You can see a summary of the new ASP.NET MVC 3 features in my beta announcement post.  Also read my original ASP.NET MVC 3 Preview post to learn about other ASP.NET MVC 3 features that showed up with that initial preview release.

This post is the first of several "mini-posts" I'm going to do that talk about a few of the new ASP.NET MVC 3 Beta features in more detail. In today’s post I'm going to discuss the new @model directive that is now supported with the new Razor view-engine, and which helps make view files more concise and cleaner.


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2014 ASPAlliance.com  |  Page Processed at 4/16/2014 11:59:14 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search