D
Deere
When I try to take a database field and change it with a function and
return it...it will not display the image. The "Imageurl" does not
convert to "src=" but stays as ImageUrl.
id=Image2 will display ok ..and shows in view source as .......
<img id="gvwExample_ctl07_Image2"
src=".\images\toys\1_16\thumb\t_15511.jpg" style="border-width:0px;" />
id=Image3 will not display image and shows in view source as.......
<asp:Image id="Image3" ImageUrl=".\images\toys\1_16\thumb\t_15511.jpg"
runat="server" />
What am I doing wrong.....thanks
the "imageref": field below starts out as
".\images\toys\1_16\15511.jpg"
the function returns ".\images\toys\1_16\thumb\t_15511.jpg"
Code:
<asp:TemplateField HeaderText="Image">
<ItemTemplate>
<asp:Image id="Image2"
ImageUrl=".\images\toys\1_16\thumb\t_15511.jpg" runat="server" />
<asp:Image id="Image3"
ImageUrl="<%#testthis(Eval("imageref"))%>" runat="server" />
</ItemTemplate>
</asp:TemplateField>
return it...it will not display the image. The "Imageurl" does not
convert to "src=" but stays as ImageUrl.
id=Image2 will display ok ..and shows in view source as .......
<img id="gvwExample_ctl07_Image2"
src=".\images\toys\1_16\thumb\t_15511.jpg" style="border-width:0px;" />
id=Image3 will not display image and shows in view source as.......
<asp:Image id="Image3" ImageUrl=".\images\toys\1_16\thumb\t_15511.jpg"
runat="server" />
What am I doing wrong.....thanks
the "imageref": field below starts out as
".\images\toys\1_16\15511.jpg"
the function returns ".\images\toys\1_16\thumb\t_15511.jpg"
Code:
<asp:TemplateField HeaderText="Image">
<ItemTemplate>
<asp:Image id="Image2"
ImageUrl=".\images\toys\1_16\thumb\t_15511.jpg" runat="server" />
<asp:Image id="Image3"
ImageUrl="<%#testthis(Eval("imageref"))%>" runat="server" />
</ItemTemplate>
</asp:TemplateField>