I have a partial view where need to wrap an image in an ActionLink so when the user clicks on it, it will go and edit the image. I have a content handler called img.ashx.
Here is my image text:
Here is my ActionLink:
@Html.ActionLink(item.Title, “EditMediaItem”, new { location = item.Location, id = item.Id })
How can this be done?
Thanks in advance.
Use the Url helper method Url.Action, example: