routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);为什么运行起来是这样的效果呢?以前是好的,不知道怎么现在运行起来就这样了!
http://localhost:1388/Views/Main/Index.cshtml
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);为什么运行起来是这样的效果呢?以前是好的,不知道怎么现在运行起来就这样了!
http://localhost:1388/Views/Main/Index.cshtml
http://localhost:1388/Main/Index