Is there any way to add an IF condition to some html within the repeater control ?
The situation is that the repeater control is displaying a post which may or may not have an image. at the moment the code is getting the image string from the database then using this to construct a thumb nail. but if theres no image string its falling over as it can't locate the image to create the thumbnail as no image exists.
So I need to check for this empty Image string and if its empty don't do the thumbnail code.
The situation is that the repeater control is displaying a post which may or may not have an image. at the moment the code is getting the image string from the database then using this to construct a thumb nail. but if theres no image string its falling over as it can't locate the image to create the thumbnail as no image exists.
So I need to check for this empty Image string and if its empty don't do the thumbnail code.