Hi
I have a datalist in which i am checking that if product have image then display its image other wise display no image through if condition but its not working.
<img src='<%# !String.IsNullOrEmpty(Eval("Companylogo").ToString()) ? "../adspictures/no-logo.jpg": "../adspictures/" + Eval("Companylogo") %>'/>
It always displays no-logo. Tell me what am i doing wrong.
Thanks