Sunday, December 9, 2018

CHECL IMAGE URL IS NULL OR NOT

 <div id="Div1" runat="server" visible='<%# Eval("pic") != DBNull.Value %>'>
 
  <asp:Image ID="Image1"     ImageUrl='<%# "/pic/" + Eval("pic") %>' runat="server" style="height:355px; width: 486px;"></asp:Image>

  </div> 

No comments:

Post a Comment

JAVA SCRIPT GET ELEMENT BY ID CONCEPT

  JavaScript getElementById() with HTML Control – Simple Example with Result What is getElementById() ? getElementById() is a JavaScript...