I have a query which brings picture from database based on id which looks like this
var selectphotos = "Select * from ItemPhotos where ItemID= @0";
I want to hide image div if that query has 0 results or no pictures. I tried
if(selectphotos.Count() > 0 ){
<div> with pics </div>
}else{
<p>just msg </p>
}
It didn't work pls help