Questions tagged [asp.net-mvc-3]

ASP.NET MVC 3 is the third major version of Model-View-Controller extension for developing web applications in a .NET framework.

ASP.NET MVC 3 is the third major version of the ASP.NET Model-View-Controller platform for web applications.

It supports the following new features:

Demos and Tutorials:

  1. Intro to ASP.NET MVC 3 (VB)
  2. Intro to ASP.NET MVC 3 (C#)

References:

See for more information.

38473 questions
15
votes
2 answers

Partial Entity Updates in WebAPI PUT/POST

Say you have a repository method to update a Document: public Document UpdateDocument(Document document) { Document serverDocument = _db.Documents.Find(document.Id); serverDocument.Title = document.Title; serverDocument.Content =…
15
votes
2 answers

Possible breaking change in MVC4 Razor that can be fixed with "@:@"

I recently upgraded my website from ASP.NET MVC3 (Razor) to MVC4 (Razor2), and in doing so found what seemed like a breaking change in the Razor view engine. The scenario (greatly simplified) is shown below. @model IEnumerable @{ Layout =…
Richard Ev
  • 52,939
  • 59
  • 191
  • 278
15
votes
2 answers

How to override the layout defined in _ViewStart for certain views in ASP.NET MVC 3?

Is it possible to suppress the layout expressed in _ViewStart.cshtml using ASP.NET MVC 3 for certain views of an app. I understand that I can define the layout programmatically in the controller action. Maybe passing in "" achieves that?
cs0815
  • 16,751
  • 45
  • 136
  • 299
15
votes
4 answers

The type 'ModelClientValidationRule' exists in both dlls

I downloaded source code of example written in asp.net mvc3 visual studio 2010 Open solution file by visual studio 2012. It coverts source code to 2012 and opens solution. When I build solution got error: Error 1 The type…
15
votes
2 answers

ASP.NET MVC Partial view ajax post?

Index.html (View)
@Html.Action("_AddCategory", "Categories")
_AddCategory.cshtml (PartialView)