I have an URL like this /home/action/id
/home/action/id
How can I access this id in view?
This should work in your view:
<%= this.ViewContext.RouteData.Values["id"] %>
(assuming the route parameter is named "id")