Hello,
in my aspx.file I have this code inside a datagrid:
<asp:TemplateColumn HeaderText="Picture">
<ItemTemplate>
<asp:Image id="Image1" runat="server" ImageUrl='upload/<%# Container.DataItem("photo")%>'></asp:Image>
</ItemTemplate>
</asp:TemplateColumn>
When I try to execute my page, I dont get any error but the image is not displayed.
Right clicking on web page in Internet Explorer i get this path: "c:\inetpub\wwwroot\website\upload\<%# Container.DataItem("photo")%>"
If i set a breakpoint on asp:image tag, i try to watch Container.DataItem("photo") value but I can read only this message: "'Container.DataItem' is not declared or the module containing it is not loaded in the debugging session."
So, what's wrong?!?
please help
Antony