开发者

How to get current url value in View

开发者 https://www.devze.com 2023-04-03 05:21 出处:网络
I have following Url: customer/logi开发者_JAVA技巧n?ReturnUrl=home How can I get this string in my view? I tried

I have following Url:

customer/logi开发者_JAVA技巧n?ReturnUrl=home

How can I get this string in my view? I tried

RouteData.GetRequiredString("action")

But it does not return full string. Any help will be appreciated.


Use the HttpRequest.Url.PathAndQuery Property to retrieve the absolute path and query like so:

<%= Request.Url.PathAndQuery %>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号