开发者

Adding an image to WebParts DeclarativeCatalog

开发者 https://www.devze.com 2023-03-16 17:28 出处:网络
I try to add an image banner as a catalog item, but it won\'t show the image at all. Do I have to wrap it in something or add a custom webpart for this functionality?

I try to add an image banner as a catalog item, but it won't show the image at all. Do I have to wrap it in something or add a custom webpart for this functionality?

When I add the exact same code in an ordinary WebPartZone it shows the image correctly.

<asp:CatalogZone ID="CatalogZone1" runat="server">
    <ZoneTemplate>
        <asp:PageCatalogPart ID="PageCatalogPart1" runat="server" />
        <asp:DeclarativeCatalogPart ID="DeclarativeCatalogPart1" runat="server" >
            <WebPartsTemplate>
                <asp:Image ID="Image1" ImageUrl="..." runat="server" />
            </WebPartsT开发者_运维百科emplate>
        </asp:DeclarativeCatalogPart>
    </ZoneTemplate>
</asp:CatalogZone>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号