When I click run on my vs2008 to try out a page it tries to load
http://localhost:14092/Views/Employee/Index.aspx
which should be
http://localhost:14092/Employee/Index
or http://localhost:14092/
How do I add these 2 routes? (I want to know how to do both so I can swap them as desired.
Here's my current routing code:
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 = "" } // Parameter defaults
);
}