My application is basically an ASP.NET application into which I am adding an MVC section.
My Default.aspx (no codebehind) page has a simple Response.Redirect on the StartPage.aspx page, but for some reason MVC is capturing and I don't get to the StartPage.aspx page. Instead, I am redirected to my first and only part of MVC, which is the registered path that I registered on the global.asax.cs (Albums) page.
Is there any way to tell MVC to leave my requests to the root "/" by my default IIS 7 document ... in this case Default.aspx?
This is what is in my RegisterRoutes:
routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute("Albums","{controller}/{action}/{id}", new { controller = "Albums", action = "Index", id = "" });
asp.net-mvc
Mouffette
source share