+1-888-365-2779
Try Now
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?

2 posts, 0 answered
  1. Mark
    Mark avatar
    86 posts
    Registered:
    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" /> 
      
    </asp:HyperLink>

    Obviously just outputs the hyperlink text as the URL

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

    Thanks

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    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