Search code examples
asp.net-mvcredirecttoaction

RedirectToAction problem


I have a Controller: AdminPageController, in which I have the following actions: Index, Create, Save

My save action is as follows:

public ActionResult Save(string[] inputs, int columnsCount)
{
.....
    return  RedirectToAction("Index");
}

I can see that the debugger passes throug the redurectToAction , but the index is not displayed. I can see that the routing is written as follows:

http://localhost:55405/AdminPage/Create#

What is wrong and how can I solve it?


Solution

  • Please use this utility displays the route data pulled from the request of the current request in the address bar. So you can type in various URLs in the address bar to see which route matches. http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx