📜  asp.net mvc 在视图中获取当前 url - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:44.984000             🧑  作者: Mango

代码示例1
// Use the HttpRequest.Url.PathAndQuery Property to retrieve the absolute path and query like so:
<%= Request.Url.PathAndQuery %>