asp.net mvc get current url in view

Code Example - asp.net mvc get current url in view

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