gpt4 book ai didi

asp.net - 如何在 Controller 中获取路由 url?

转载 作者:行者123 更新时间:2023-12-02 13:45:38 25 4
gpt4 key购买 nike

我可以使用 HTML 帮助程序在我的 View 中获取路由的 URL,但是如何在 Controller 中执行相同的操作?

最佳答案

使用完全相同的代码。Controller还有Url helper 属性(property)。

关于asp.net - 如何在 Controller 中获取路由 url?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9269765/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com