As you can see, there are three categories of data types of ActionResult, Content Returning Results. Redirection Results. Status Results.
Interviews3 answers
What are the ReturnTypes of Action in Asp.Net MVC?
3 Answers
Rajeev KumarPosted Mar 31, 2023, 3:37 AM EDT
Return types of action method colud be json, view, partial view etc.
Rajani PandeyPosted Jan 7, 2018, 7:24 AM EST
The following table shows the built-in action result types,
ViewResult: Renders a view as a Web page.
PartialViewResult: Renders a partial view
ContentResult : Returns a string
FileContentResult: Returns file content
FilePathResult : Returns file content
FileStreamResult: Returns file content
EmptyResult: Returns nothing
JavaScriptResult: Returns script for execution
JsonResult: Returns JSON formatted data
RedirectToResult: Redirects to the specified URL
HttpUnauthorizedResult: Returns 403 HTTP Status code
RedirectToRouteResult" Redirects to different
action/different controller action
Pradeep YadavPosted May 25, 2017, 10:34 AM EDT

