ASP MVC Routing with > 1 parameter

前端 未结 3 430

I have the following route defined

            routes.MapRoute(
            \"ItemName\",
            \"{controller}/{action}/{projectName}/{name}\",
                    


        
3条回答
  •  没有蜡笔的小新
    2021-02-04 22:43

    Just to clear up, here is what I finally did to solve it, thanks to the answer from @Brad

    <%=Html.RouteLink("Edit", "ItemName", new { projectName=m.Project.title, name=m.name, controller="Milestone", action="Edit"})%>
    

提交回复
热议问题