Search code examples
asp.netasp.net-mvcroutesactionlinkasp.net-core-mvc

ActionLink (LinkText,Action,ControlName,AreaName,RoutesValue,html attribute)


A bottom'd like code samples ActionLink (LinkText,Action,ControlName,AreaName,RoutesValue,html attribute) I looked at the sites do not have all of these together Thanks


Solution

  • Specify your area name in the Route Values parameter:

    @Html.ActionLink("Go to contact page", "Index", "Drugs", new { area = "Growths", id = item.GroupMeasure_ID }, null))