python ruby-programming-language Smalltalk Vue.js Knockoutjs TypeScript JavaScript, OOPs JavaScript Angular 8,7,6,5,4 and 2 Interview Questions and Answers Angular 8,7,6,5,4 and 2 Interview Questions and Answers Angular 4 Angular 2 AngularJs 1.x NodeJs Perl Programming R Programming RequireJs Rust Programming Backbonejs closure programming language go-programming-language kotlin-programming-language
JsonResult

What Are different return types of a controller action method in MVC?

What Are different return types of a controller action method in MVC?
The types of controller action methods -
1.      ViewResult – It is used to renders a specified view to the response stream
2.      PartialViewResult – It is used to renders a specified partial view to the response stream
3.      EmptyResult - It is used to returns an empty response
4.      RedirectResult - It is used to performs an HTTP redirection to a specified URL
5.      RedirectToRouteResult - It is used to performs an HTTP redirection to a URL that is determined by the routing engine, based on given route data
6.      JsonResult - It is used to serializes a given object to JSON format
7.      JavaScriptResult - It is used to returns a piece of JavaScript code that can be executed on the client
8.      ContentResult - Writes content to the response stream without requiring a view
9.      FileContentResult - It is used to returns a file to the client
10.  FileStreamResult - It is used to returns a file to the client, which is provided by a Stream
11.  FilePathResult - It is used to returns a file to the client

ANIL SINGH

Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - http://code-sample.com and http://code-sample.xyz
My Books - Interview Questions and Answers Books- Get Your Book in 15+ Digital Stores Worldwide..

You Might Also Like
www.code-sample.com/. Powered by Blogger.
ASK Questions