Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Robert Fyffe 9 posts 29 karma points
    Mar 10, 2012 @ 00:38
    Robert Fyffe
    0

    Display Media Picker Image

    I have a usercontrol that basically displays nodes of a sidebar doc type according to checkboxes within a main page doc type.

    The sidebar doctype also inclues a media picker field, how do I render this field from the usercontrol?

    My usercontrol looks like so:

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SidebarWidgets.ascx.cs" Inherits="SidebarWidgets" %>
    <asp:Repeater ID="widgetRepeater" runat="server" onitemdatabound="WidgetRepeater_ItemDataBound">
    
        <ItemTemplate>
        <li>
        <span><asp:PlaceHolder ID="sidebarMediaIcon" runat="server" /></span>
        <h2><asp:PlaceHolder ID="contentTitle" runat="server" /></h2>
        <asp:PlaceHolder ID="bodyText" runat="server" />
        </li>
        </ItemTemplate>
    
    </asp:Repeater> 

    I know how to do it if using an XSLT file but not within a user control.

     

    Thanks

    Robert

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies