I have a route as
This points toCode:http://www.domain.com/Test/12345678
So, how do i get the actual page path that is currently displaying asCode:http://www.domian.com/SomeArea/SomeController/SomeAction?customerId=12345678
Code:/SomeArea/SomeController/SomeAction
- Request.RawUrl gives the path as http://www.domain.com/Test/12345678
- Request.Url.AbsolutePath gives the path as /Test/12345678
- Request.Url.LocalPath gives the path as /Test/12345678
- Request.Url.AbsoluteUri gives the path as http://www.domain.com/Test/12345678



Reply With Quote



Bookmarks