More in this section
Forums / Developing with Sitefinity / extending news template to show a custom link - how to set the HRef?

extending news template to show a custom link - how to set the HRef?

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Mark
    Mark avatar
    86 posts
    08 Feb 2010
    03 May 2011
    Link to this post
    I've added a custom feild to the news module called External URL

    I now need to include this link on the ListPageMaster.ascx page

    However, this code:




    <asp:HyperLink ID="Link1" runat="server" >
        <img alt="View More" src="/images/moreArrow.gif" /> 

    Obviously just outputs the hyperlink text as the URL

    How would i get it to output the image as the hyperlink?


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    06 May 2011
    Link to this post
    Hello Markus,

    Why don't you use ImageUrl property of the HyperLink?

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered