Working with RAZOR Model Keyword in ASP.NET MVC 3.0

added by chart
11/15/2010 4:05:33 AM

336 Views

Razor is the new view engine that is available for ASP.NET MVC 3 Beta. Razor has directives that are the same as the WebForms view engine, so you can define namespaces at the top of the Razor file so you don’t have to use the fully qualified name when referencing objects. One of the keywords available is the new @model keyword. This keyword defines the model that is being used in the view. By default the default value is dynamic, which means you’re using a dynamic model for your view. However you can change this so you can use a strongly typed view. This article will demonstrate how to use both


1 comments

SuprotimAgarwal
11/19/2010 4:39:52 AM
You have shamelessly copied this article from http://dotnetcurry.com/ShowArticle.aspx?ID=601. How do you plan selling genuine hosting plans when you resort to such means