---
title: "How do return string string result in Asp.Net MVC ?"  
description: "How do return string string result in Asp.Net MVC ?"  
author: "Anonymous User"  
published: 2014-10-07  
updated: 2014-10-07  
canonical: https://www.mindstick.com/forum/2322/how-do-return-string-string-result-in-asp-dot-net-mvc  
category: "asp.net mvc"  
tags: ["asp.net", "asp.net mvc"]  
reading_time: 1 minute  

---

# How do return string string result in Asp.Net MVC ?

In my [ajax](https://www.mindstick.com/articles/1541/check-availability-of-user-name-or-email-using-asp-dot-net-ajax-and-jquery) call, I want to return a [string value](https://www.mindstick.com/forum/159623/how-to-get-an-enum-value-from-a-string-value-in-c-sharp) back to the calling page.

Should I use [ActionResult](https://www.mindstick.com/forum/33961/what-is-the-difference-between-actionresult-and-viewresult) or just return a string?

## Replies

### Reply by Anonymous User

You can just use the ContentResult to return a plain [string](https://www.mindstick.com/articles/1527/string-split-in-c-sharp).

```
public ActionResult Temp()        {            return Content("Hi
there!");        }
```


---

Original Source: https://www.mindstick.com/forum/2322/how-do-return-string-string-result-in-asp-dot-net-mvc

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
