---
title: "What is ActionResult in asp.net MVC? Explain its type."  
description: "What is ActionResult in asp.net MVC? Explain its type."  
author: "Kalin"  
published: 2022-03-11  
updated: 2022-03-11  
canonical: https://www.mindstick.com/forum/156910/what-is-actionresult-in-asp-dot-net-mvc-explain-its-type  
category: "asp.net mvc"  
tags: ["asp.net", "asp.net mvc"]  
reading_time: 2 minutes  

---

# What is ActionResult in asp.net MVC? Explain its type.

What is [ActionResult](https://www.mindstick.com/forum/33961/what-is-the-difference-between-actionresult-and-viewresult) in [asp.net MVC](https://www.mindstick.com/forum/155798/what-is-caching-in-asp-dot-net-mvc)? [Explain](https://www.mindstick.com/forum/157854/what-is-system-debugging-explain-some-system-debugging-tools-used-in-modern-computer-systems) its Type.

## Replies

### Reply by Steilla Mitchel

**Action Results in [ASP.Net](https://www.mindstick.com/articles/934/default-folders-available-inside-the-asp-dot-net-application-folder) [MVC](https://www.mindstick.com/forum/155803/define-cache-profile-in-mvc) :**

When we create a controller in asp.net mvc then a ActionResult method is automatically generated named as Index that returns a view(). In asp.net mvc an ActionResult is an Abstract class and ActionResult is a return type of controller method. Each ActionResult return different type of result. If we need to return an image then we need use FileResult method which is built-in method in asp.net mvc.

## Types of ActionResult in MVC:

There are many types of ActionResults that are used in mvc given as below,

## 1- ContentResult:

It returns user type content and http content type like text.

```
   return Content('This is my content result');
```

## 2- ViewResult:

This return type is used to return webpage from action method or in short term it return a view as a Webpage.

```
   return View('Index');
```

## 3- RedirectToRouteResult:

It is used to redirect to another controller and action method.

## 4- RedirectResult:

It return to a specific action method based on URL.

```
       return Redirect('/Home/index');
```

## 5- PartialViewResult:

It return a partial view to the response or It returns a part of a view that will rendered in another view.

```
public PartialViewResult PartialViewExp()
{
return PartialView('Login');
}
```

## 6- jsonResult:

This return type is used to return Json message.

![What is ActionResult in asp.net MVC? Explain its type.](https://www.mindstick.com/mindstickforums/1f9e7460-00c7-4048-91a8-9a798c1fbedf/images/6b6463b4-0911-443a-ae3f-888c1cb35224.png)

## 7- javascriptResult:

This return type is used to return javascript code that is run on client's browser.

![What is ActionResult in asp.net MVC? Explain its type.](https://www.mindstick.com/mindstickforums/1f9e7460-00c7-4048-91a8-9a798c1fbedf/images/3eff1ab0-b06d-4f91-af7f-931aef80a240.png)

## 8- EmptyResult:

This is returns a result that does nothing.

```
return new EmptyResult();
```

## 9- FileResult:

This return type is use to returns binary file content to the response.

\


---

Original Source: https://www.mindstick.com/forum/156910/what-is-actionresult-in-asp-dot-net-mvc-explain-its-type

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
