can anybody please guide me how to display an image on gridview in asp.net? i had the image path get from database, eg : D:\Picture\photo.jpg
i had try this but it appear nothing in the image box. my front-end code:
<Columns>
<asp:BoundColumn DataField="id" HeaderText="Email ID" Visible="False">
<HeaderStyle />
</asp:BoundColumn>
<asp:BoundColumn DataField="photo_url" HeaderText="Photo" Visible="false">
</asp:BoundColumn>
<asp:TemplateColumn>
<ItemTemplate>
<asp:Image ID="Image1" Height = "100" Width = "100" runat="server" DataImageUrlField = '<%# Eval("photo_url") %>' /> >>>>>>>>display image on this part
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="post_body" HeaderText="Post"></asp:BoundColumn>
<asp:BoundColumn DataField="post_id" HeaderText="Comment/Post ID" Visible="False">
<HeaderStyle Width="50px" />
</asp:BoundColumn>
</Columns>