How to get the current route ID within a View from the URL (ASP.NET MVC) February 7, 2023 by Tarik I think this is what you’re looking for: <%=Url.RequestContext.RouteData.Values["id"]%>