<asp:TemplateField HeaderText="Image"> <ItemTemplate> <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("imagepath") %>' Height="100px" Width="100px" /> </ItemTemplate> </asp:TemplateField>
Thanks for your edit! This edit will be visible only to you until it is peer reviewed. <asp:TemplateField HeaderText="Image"> <ItemTemplate> <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("imagepath") %>' Height="100px" Width="100px" /> </ItemTemplate> </asp:TemplateField> The path which is binding is C:/inetpub/wwwroot/Image/FolderName/abc.jpg from a table, but it is not getting displayed. The image is in the same folder and it is not even giving any exception. Is it necessary to save image in a folder inside application/Project folder? If saved outside in any other path/directory does that image doesn't save properly or gives problem in fetching? I am stuck. Please Help Me.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)