ASP.NET MVC 3: New @model keyword in Razor
page 1 of 7
Published: 19 Oct 2010
Unedited - Community Contributed
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
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 32102/ 86


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-2024  |  Page Processed at 2024-05-18 9:45:45 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search