I have repeater control and under ItemTemplate, I have image control. Anyway old
How can I install ImageUrl programmatically?
In any case, the old html code I had was like this:
<ItemTemplate>
<img src = "<% # Eval (" ImageSource ")%>" alt = "" />
</ItemTemplate>
But I want to check if the image exists in the directory or not, then I can configure using a temporary image.
I have a code, but .. it does not work, so it makes no sense to show it here. Can you guys help me? Should I use the ItemCreated or ItemDataBound event?
source share