How to get current page URL in MVC 3
Andru
6
Points
3
Posts
|
Hi, I am using mvc 3. What is the best way to get the URL of the current page? |
Answers
Brian
2376
Points
13
Posts
|
Hi Andru, Use this Request.Url.PathAndQuery
It will work perfectly, especially if you only want the relative Uri (but keeping querystrings)
Posted On:
23-Jun-2015 06:08
|
Blog
Active User (0)
No Active User!