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

1 Answer 1

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>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.