<asp:DataList ID="grdprof" runat="server"> <ItemTemplate> <div> <a href='<%# Eval("Prospectus_mention_File1")%>' target="_blank" title="Prospectus mention Link" style="border-bottom-style: none;"> <asp:Image ID="userPhoto" ImageUrl="~/images/File.png" runat="server" /> </a> <a href='<%# Eval("Prospectus_mention_File2")%>' target="_blank" title="Prospectus mention Link" style="border-bottom-style: none;"> <asp:Image ID="Image1" ImageUrl="~/images/File.png" runat="server" /> </a> <a href='<%# Eval("Prospectus_mention_File3")%>' target="_blank" title="Prospectus mention Link" style="border-bottom-style: none;"> <asp:Image ID="Image2" ImageUrl="~/images/File.png" runat="server" /> </a> <a href='<%# Eval("Prospectus_mention_File4")%>' target="_blank" title="Prospectus mention Link" style="border-bottom-style: none;"> <asp:Image ID="Image3" ImageUrl="~/images/File.png" runat="server" /> </a> <a href='<%# Eval("Prospectus_mention_File5")%>' target="_blank" title="Prospectus mention Link" style="border-bottom-style: none;"> <asp:Image ID="Image4" ImageUrl="~/images/File.png" runat="server" /> </a> </div> </ItemTemplate> </asp:DataList>
behind code--- public void Bind() { DCI_BAL1 objDCI_BAL = new DCI_BAL1(); DataSet ds = new DataSet(); string collegeId = Session["CollegeId"].ToString(); objDCI_BAL.Qtype = "11"; objDCI_BAL.CollegeId = collegeId; objDCI_BAL.UserId = UserID; ds = objDCI_BAL.BindData(objDCI_BAL); if (ds.Tables.Count > 0) { grdprof.DataSource = ds; grdprof.DataBind= ds; } I want to Know how to Hide ImageUrl="~/images/File.png" when i get value null in column so please help me