All-Star
53631 Points
23988 Posts
Jan 23, 2020 12:12 PM|mgebhard|LINK
The syntax is...
<a href='@Url.Action("Index", "Home")'> <img src='~/Images/Image.png' style="width:100px; height:100px" /> </a>
This code...
<a href='@Html.ActionLink("Index", "Home")'>
...creates an anchor tag.
Learn how to use the browser's developer tools to view the HTML and debug your code.
All-Star
53631 Points
23988 Posts
Re: Image with Action Link
Jan 23, 2020 12:12 PM|mgebhard|LINK
The syntax is...
This code...
...creates an anchor tag.
Learn how to use the browser's developer tools to view the HTML and debug your code.