Hi,
I have a question, I would like to know how can I add pictures to my datagrid? On my DB I have all images path ex.(/images/image001.jpg), is there a way that I can display that picture in the datagrid.
Thank You
Ennio Bozzetti
Ennio 0 Newbie Poster
Recommended Answers
Jump to Posttry like this for gridview same will work for any databoundcontrol with small changes
<asp:TemplateField > <ItemTemplate > <asp:Image ID="Image1" runat="server" ImageUrl ='<%# "~/Images/"+Eval("filenamefromdb") %>' /> </ItemTemplate> </asp:TemplateField>
Jump to PostTemplate is the only cure to your solution
All 9 Replies
InstantASP Ltd 0 Newbie Poster
sandy2005 0 Newbie Poster
sandy2005 0 Newbie Poster
sandy2005 0 Newbie Poster
anywhenanywhere 0 Newbie Poster
anywhenanywhere 0 Newbie Poster
srikanthkadem 0 Junior Poster in Training
ruhee 0 Newbie Poster
kvprajapati commented: This is an old thread. Do not reply. +0
dnanetwork 18 Practically a Master Poster Banned
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.