标签:mvc path out reg nbsp login routes action 一段
设置启动页需要在路由中添加一段代码:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Login", action = "Index", id = UrlParameter.Optional }
).DataTokens.Add("Area", "PseronnalMenanger");
}
标签:mvc path out reg nbsp login routes action 一段
原文地址:http://www.cnblogs.com/easypass/p/6626107.html