Different types of Action Results in MVC

Posted By : Bipul Kumar Tiwari,


MVC controller may have one or more actions and can return different type of result.ActionResults is the base class of all result type and it is abstract class.
You can create action methods that return an object of any type, such as a string, an integer, or a Boolean value. These return types are wrapped in an appropriate ActionResult  type before they are rendered to the response stream.

Types of action results


ActionResult Description
ViewResult
PartialViewResult
RedirectResult
RedirectToActionResult
ContentResult
JsonResult
JavaScriptResult
FileResult
EmptyResult


Related Articles

 

About the Author

author
Its me BIPUL who is logically minded creative at heart , a good communicator , a self taught full stack developer. I constantly focuses on my thinking , reading , collecting and creating my work in a order to enhance my skills.

I discover new dimensions for growing bussiness with a proven record in creating database and programming. I have a strong technical skills as well as strong interpersonal skills. Read more...
 

Browse By Category

Popular Articles