hi guyz.
i ve been strugling to find some way to do my required conditional binding, but i am lost :s
i want to use Eval("products_image") in conditional binding in such a way that if product_image exists in images directory then its ok, otherwise it should display "noimage.jpg"
i tried to do it this way:
<%# (File.Exists(("ProductImages/"+Convert.ToString(Eval("products_image"))))) ? ("ProductImages/"+Convert.ToString(Eval("products_image"))) : "ProductImages/noimage_small.jpg" ; %>
i have tried otherways as well, but every time, i mess up with a bunch of errors.
can any one guide me the right way to do this??