Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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 %>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mvc #current #url #view
ADD COMMENT
Topic
Name
5+8 =