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.
可能重复: ASP.NET MVC 从 URL 获取路由值
我的一个页面需要确定当前请求来自什么操作。我可以得到Request.UrlReferrer,但需要将其转换为动作和控制器名称。从行动到路线有很多方法,但我怎样才能回去呢?
Request.UrlReferrer
这是你的答案:ASP.NET MVC Get Route values from a URL