0

I want to display the ImageLink on my ASP.NET MVC Page.

HTML.ImageLink is not showing up.

Did i miss any libraries?

Appreciate your response.

Thanks

Rita
  • 1,237
  • 5
  • 24
  • 46

1 Answers1

5

There isn't an ImageLink extension in MVC proper. You might find some ideas on these questions:

ASP.NET MVC Ajax.ActionLink with Image Is there an ASP.NET MVC HtmlHelper for image links?

or you could do something simple like:

<a href='<%= Url.Action( "action", "controller" ) %>'>
   <img src='<%= Url.Content( "~/content/images/img.png" ) %>' alt="Action" />
</a>
Community
  • 1
  • 1
tvanfosson
  • 524,688
  • 99
  • 697
  • 795