ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Show image only if Count of Records from Database is greater than one in ASP.Net<p>Hi Nedash,</p> <p>please do the following way...,</p> <pre class="brush: sql">(SELECT COUNT(Id) FROM Black_list WHERE Behcode=@behcode) Blacklist</pre> <p>And replace your whole if condition for Black list as</p> <pre class="brush: csharp">Imgblacklist.Visible = Convert.ToInt32(_dr[&#34;Blacklist&#34;]) &gt; 0;</pre> <p>(Dont change ImageFree if condition and its code as its working well).</p> <p>Thanks and Regards,</p> <p>Rk_Hirpara.</p>https://www.aspforums.net:443/Threads/130661/Show-image-only-if-Count-of-Records-from-Database-is-greater-than-one-in-ASPNet/https://www.aspforums.net:443/Threads/130661/Show-image-only-if-Count-of-Records-from-Database-is-greater-than-one-in-ASPNet/Mon, 22 Apr 2013 02:22:05 GMT