What are some alternatives to RedirectToAction?

What are some alternatives to RedirectToAction?

On my HomeController I have an index action which redirects to the index action of the CustomerController via the RedirectToAction method. In this instance I don't like how RedirectToAction modifies the URL showing mysite.com/Customer. Are there some alternative mechanisms to performing a redirection that will allow me to still leverage the index action from the CustomerController?

public RedirectToRouteResult Index() {     return RedirectToAction("Index", "Customer"); } 

Authentication for IIS content in virtual directory under ASP.NET MVC website


How can I get the client side date and currency formats?
As I understood it, RedirectToAction uses a reverse lookup on the routing table to generate its URL.

When to use Singleton vs Transient vs Request using Ninject and MongoDB
So if you've told the Routing module that you want to map "/Customer/Index" to Controller Customer and Action Index then RedirectToAction will take your Index and Customer arguments and convert them to "/Customer/Index"..
ASP.NET MVC Registration With Captcha
So if you want to change the behaviour of RedirectToAction you simply need to change your routing rules..
ASP.NET MVC: Why is `ToMvcHtmlString` not public?

What is a good strategy for dealing with large javascript code in asp.net MVC projects?

54 out of 100 based on 59 user ratings 734 reviews