Thursday, July 9, 2009

Alternate image when the orginal image is missing

How to provide an alternate image when the orginal image is missing?

<img border=0 src='<%# (Eval("Image").ToString() != null) ? "http://www.mynewsite.com/Images/thumb/" + Eval("Image") : "path_of_dummy_image" %>' />

No comments:

Post a Comment