Image link

Topics: General
Jan 23, 2012 at 2:32 PM

Is there any way to call a html helper function to create image link.

The method html.ItemDisplayLink(Title, ContentItem) creates a an anchor tag <a></a>. I want something like

<a><img></img></a>.

 

Please advise

Thanks

Coordinator
Jan 23, 2012 at 7:21 PM

You can use ItemDisplayUrl instead and construct the html you want with it.

Jan 23, 2012 at 8:29 PM

Thank you it worked!!