ASPForums.Net RSS Feed additions to the content that appears on ASPForums.Net(c) 2019 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>, 22 Apr 2013 02:22:05 GMT