Quantcast
Channel: Installation and Setup
Viewing all articles
Browse latest Browse all 631

MVC2 start page reset

$
0
0

Hi,


I am using c# .net mvc2 and I am new to this. I set up the project according the tutorials on asp.net, and everything works fine. However, I accidentally selected one of the views to be the start page, and now every time I debug, the .aspx page tried to come up in the browser, but due to the lack of flow and routing, it errors out and I have to manually type the url every single time i debug the app.

My RegisterRoutes Method is still trying to get the Admin controller, but the debugger seems to be overridding that, or I am not sure what is happening. Please give any suggestions if you can.       

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


            routes.MapRoute(
                "Default", // Route name"{controller}/{action}/{id}", // URL with parameters
                new { controller = "Admin", action = "Index", id = UrlParameter.Optional }
                // Parameter defaults
            );


        }






Viewing all articles
Browse latest Browse all 631

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>