Top "Actionresult" questions

The value returned by the Struts 2 Action class method when it completes.

In MVC, how do I return a string result?

In my AJAX call, I want to return a string value back to the calling page. Should I use ActionResult …

asp.net-mvc ajax actionresult
return error message with actionResult

MVC App, client makes request to server, error happens, want to send the msg back to the client. Tried HttpStatusCodeResult …

c# asp.net-mvc asp.net-mvc-3 actionresult
How to return an XML string as an action result in MVC

Possible Duplicate: What is the best way to return XML from a controller's action in ASP.NET MVC? I'm able …

.net xml asp.net-mvc actionresult
Redirect user from controller to another view MVC

I'm trying to redirect a user from a method on a controller to another view but can't get it to …

c# asp.net-mvc redirect controller actionresult
How to serve html file from another directory as ActionResult

I have a specialised case where I wish to serve a straight html file from a Controller Action. I want …

html asp.net-mvc actionresult controller-action
return new RedirectResult() vs return Redirect()

What is the difference between the following two controller ActionResult return statements: return new RedirectResult("http://www.google.com", false); …

asp.net asp.net-mvc asp.net-mvc-3 redirect actionresult
MVC3 Redirect to route from ActionResult

So I have a HttpPost only ActionResult called Edit. After doing its thing (logic etc), I want it to redirect …

c# asp.net-mvc-3 actionresult url-redirection
Must ASP.NET MVC Controller Methods Return ActionResult?

Being new to ASP.NET MVC, I've been wondering about the signature of Controller methods. In all the examples I've …

asp.net-mvc polymorphism actionresult viewresult
MVC Controller Using Response Stream

I'm using MVC 3 I would like to dynamically create a CSV file for download, but I am unsure as to …

asp.net-mvc asp.net-mvc-3 actionresult
Disable Session state per-request in ASP.Net MVC

I am creating an ActionResult in ASP.Net MVC to serve images. With Session state enabled, IIS will only handle …

asp.net asp.net-mvc asynchronous session-state actionresult