Is there a way to hide the div containing the RadBinaryImage if the bind value "Pic" is null?
<div class="photo-container">
<telerik:RadBinaryImage runat="server" ID="RadBinaryImage1" DataValue='<%# Eval("Pic") ==DBNull.Value? new System.Byte[0]: Eval("Pic") %>'
AutoAdjustImageControlSize="false"Width="300px"
AlternateText='<%#Eval("PicName")%>' />
</div>
Anonymous User
24-Mar-2015You can do it like this.
visible attribute will return false if the value is null and it will return true if the value is not null.