Routing URL in asp.net application?

Up vote 0 down vote favorite share g+ share fb share tw.

I got somes trouble with the maproute in my application. I have two projet in my application. The first one is sampleStore (it is the main project) and I have this MapRoute in the global.

Asax public static void RegisterRoutes(RouteCollection routes) { routes. IgnoreRoute("{resource}. Axd/{*pathInfo}"); routes.

MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Home", action = "Index", id = UrlParameter. Optional }, // Parameter defaults new string { typeof(MySampleOnlineStore.Controllers. HomeController).

Namespace } ); } And in an other project I have sampleStore. BackOffice where I added a route. Cs and on it, I have public override void RegisterArea(AreaRegistrationContext context) { context.

MapRoute( "BackOffice_Default", "BackOffice", new { controller = "Home", action = "Index" }, new string { typeof(MySampleOnlineStore.BackOffice.Controllers. HomeController). Namespace } ); } And when a tape the url : Localhost:xxxx/BackOffice , the application redirect me on the index of the main project instead of the backoffice index.

Can you help me to correct it. Thanck in advance asp. Net-mvc-3-areas link|improve this question asked Mar 26 at 2:14spawn11.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send