This is a migrated thread and some comments may be shown as answers.

RadBinaryImage not showing when inside a masterpage

1 Answer 67 Views
BinaryImage
This is a migrated thread and some comments may be shown as answers.
Antoinette
Top achievements
Rank 1
Antoinette asked on 13 Jan 2014, 02:28 AM
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

Alan

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Jan 2014, 11:26 AM
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.

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

Please provide your code if it doesn't help.
Thanks,
Shinu.
Tags
BinaryImage
Asked by
Antoinette
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or