Conditionally show image in a repeater if the database is not null

soniapeach

New Member
I have a repeater that includes as image. However, there is an image that may not be in all of the Promotions in this repeater\[code\]<div class="promo"> <h2><%# ((Promotion)Container.DataItem).Title %></h2> <p><img src="http://stackoverflow.com/Uploads/<%# ((Promotion)Container.DataItem).Image %>" alt="" class="promoImg" /><%# ((Promotion)Container.DataItem).Description %></p> <p><em><%# ((Promotion)Container.DataItem).Restrictions %></em></p></div>\[/code\]Can someone show me how to make the only show up if that entry does not have a null field?
 
Back
Top