ASP MVC Routing with > 1 parameter

前端 未结 3 376

I have the following route defined

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


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-04 22:38

    You can try

    Html.RouteLink("Edit","ItemName", new {name=m.name, projectName=m.Project.title});
    

提交回复
热议问题