4

MVC project what is the difference between

PartialViewResult

ActionResult

ViewResult

classes?

can anyone post brief introduction link?

Neo
  • 15,491
  • 59
  • 215
  • 405
  • 1
    Since your DisplayName `Borrower` is different from the property name `Name`, how would you expect mvc to magically guess what DisplayName you want? – Ron Sijm Dec 20 '11 at 15:27
  • 2
    You just change the question! if you want to ask another question, ask once more, don't edit old questions! – gdoron Dec 20 '11 at 15:37

2 Answers2

8
  • ActionResult - an abstract class that all actions in an ASP.NET MVC application should return a concrete instance of.
  • ViewResult - an implementation of ActionResult that is used to render a view using the specified view engine
  • PartialViewResult - an implementation of ActionResult that is used to render a partial view (without a layout) using the specified view engine
Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
2

Here are some resources to get you started:

The MSDN documentation for the ActionResult class can be viewed here.

ActionResult types in MVC2 is a good introduction.

ASP.NET MVC ActionResults explained is some more information.

What's the point of ActionResult return type? link refers to another Stack Overflow post.

Difference Between ViewResult() and ActionResult() is another.

Community
  • 1
  • 1
Benjamin Gale
  • 12,977
  • 6
  • 62
  • 100