RadBinaryImage not showing when inside a masterpage

2 posts, 0 answers
  1. Antoinette
    Antoinette avatar
    1 posts
    Member since:
    Feb 2012

    Posted 12 Jan 2014 Link to this post

    Hi, I am putting together a website using some pages with telerik controls on them and then also the Blogengine.net open source system.  When I try and use the RadBinaryImage control on a page which inherits from a masterpage it doesn't show any of the images in a configured folder (like the demo).  Instead it shows the broken image icon.

    What could I be doing wrong?  I have a zip file with a small project but can't attach it to this thread -

    any ideas?

    Many thanks

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 27 Jan 2014 in reply to Antoinette Link to this post

    Hi Antoinette,

    Unfortunately I couldn't replicate the issue at my end. Please have a look into the sample code snippet which works fine at my end.

    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
        <telerik:RadRotator runat="server" ID="itemsRotator" Height="128px" DataSourceID="SqlDataSource1">
                <telerik:RadBinaryImage runat="server" ID="RadBinaryImage1" AutoAdjustImageControlSize="false"
                    Width="200px" Height="130px" ResizeMode="Fit" ImageAlign="Middle" DataValue='<%#Eval("Img") %>' />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
            SelectCommand="SELECT [Img] FROM [Images]" />

    Please provide your code if it doesn't help.
Back to Top