G
Guest
Hi
I am using Image control with DataList control but have a problem. Here is the code I am using
<asp:Image ImageURL='<%# DataBinder.Eval(Container.DataItem, "imagefilename" ) %>' Runat="Server" /
I would like to change it to something like this
<asp:Image ImageURL='images/<%# DataBinder.Eval(Container.DataItem, "imagefilename" ) %>' Runat="Server" /
In other words, I would like to add a folder name part to the ImageURL value. However it doesn't seem to work properly. What should I do
Thank you in advance
Vitalii
I am using Image control with DataList control but have a problem. Here is the code I am using
<asp:Image ImageURL='<%# DataBinder.Eval(Container.DataItem, "imagefilename" ) %>' Runat="Server" /
I would like to change it to something like this
<asp:Image ImageURL='images/<%# DataBinder.Eval(Container.DataItem, "imagefilename" ) %>' Runat="Server" /
In other words, I would like to add a folder name part to the ImageURL value. However it doesn't seem to work properly. What should I do
Thank you in advance
Vitalii