Databinding problem with Images

jenilia

New Member
I'm trying to bind to an image in a repeater control. Not all of the rows will have an image. What I need to do is to figure out a way to keep the images from showing if there isn't supposed to be one. IE, right now, if no value is binding to the ImageURL, an image is being rendered with no properties and shows on the page as a missing image. I was going to try to bind to the "visible" property, but I'm not sure how to format a databinding expression that works there correctly.hi,<BR><BR>can u check this link<BR><BR>this may be able help u out..<BR><BR>http://www.dotnetbips.com/displayarticle.aspx?id=101<BR>regards<BR>yesuThanks for the article. While glancing through it, it struck me that DUH I should just write my own image control, which I could use to encapulate some logic about whether it should show or not. So that's what I did! It works great.
 
Back
Top