asp.net - How to convert the Absolute Uri path from .net to .net core?
问题描述
I am converting my asp.net project to asp.net core. It throws a few errors that i need your assistance to fix. enter image description here
enter code here
解决方案
Try this:
HttpContext.Request.GetDisplayUrl()
推荐阅读
- react-router - 为什么和
不触发连接反应路由器中 state.router 的更新? - json - 如何从 Gin 中发布的 JSON 中获取特定参数?
- ios - Xcode 11.0 beta 中的“Command CompileSwift 以非零退出代码失败”
- sql-server - SQL Server 重命名表
- javascript - 如果 div 高于父 div,不要使用 height:inherit
- python - python-ldap modrdn 方法和 rename 方法有什么区别?
- .net - Web API 2、OWIN、OAuth、IdentityModel tojen 授权返回“此请求的授权已被拒绝”
- machine-learning - 将音频流式传输到神经网络
- r - 如何在div内的第二个p元素中提取文本
- c# - 在一个视图/页面中实现多个并发 Ajax 请求的最佳方法是什么?