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 POPUP C#

 ScriptManager.RegisterStartupScript(this,this.GetType(),"Popup","alert('Welcome to NRsolution4u!');",true);