i have
routes.MapRoute("BuildingCompanyProject", "BuildingCompany/{projectId}/BuildingProject", new { controller = "BuildingProject", action = "Index", projectId = "" });
in Global.asax.cs
and is placed below the default route.
and the above route is called on clicking a link
<a title="Go toCompany" style="background: none!important" href='<%= Url.RouteUrl("BuildingCompanyProject",new {controller="BuildingProject" , action="Index" , projectId=item.Id})%>'>
beheer bedrijf</a>
But on clicking the url is mapped to default route. How should i achieve this.