Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 arearegistration 在 asp.net mvc 2 中设置路由优先级?我有一条要设置最低优先级的全部 {*pagePath} 路由。
是的,你可以,但是它只对将东西发送到堆栈的后面有用(这对于你的包罗万象来说是个好主意)。
var route = routes["home_default"]; routes.Remove(route); routes.Add(route);
我在带有路由的项目中使用它,并将其移动到列表的末尾。