【发布时间】:2014-04-17 08:46:35
【问题描述】:
我正在使用此代码在RouteConfig.cs 中进行路由:
routes.MapRoute("Default", "", new { controller = "Home", action = "Index", id = UrlParameter.Optional });
现在我想更改它,如果网址是"<domain>/Saman/Profile",我应该为username 是"Saman" 的用户加载个人资料页面。
【问题讨论】:
标签: asp.net routing asp.net-mvc-5