I have a similar problem, but it pertains to dynamically displaying images in a DataList. I need to bind (or eval) multiple fields to an image url. Is there a similar solution for the ImageUrl property of an ASP:Image control?
Here is my code to show you an example of what I am trying to accomplish:
<asp:DataList ID="AltPhotosDataList" DataSourceID="AltPhotoThumbsDataSource" runat="server" CellSpacing="5" HorizontalAlign="Center" RepeatColumns="5" RepeatDirection="Horizontal">
<ItemTemplate>
<a href='<%# Eval("ProductID", "/Products/viewProductPhotos.aspx?ProdID={0}") %>' target="viewProductPhotosViewer" onclick="openRequestedPopup(this.href, this.target); return false;">
<asp:Image ID="Image2" runat="server" ImageUrl='<%# Eval("PhotoPath, ProductID, FileName", "/Products/ProdImg/{0}/{1}/viewProducts/altViews/{2}") %>' AlternateText="Click to see more views"/></a>
</ItemTemplate>
</asp:DataList>