forum

Home / DeveloperSection / Forums / Hide div if Eval value of control is null

Hide div if Eval value of control is null

Anonymous User 1952 24-Mar-2015

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>


Updated on 24-Mar-2015
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By