GridView Image using Folder in ASP.NET

Aspx Code

<asp:TemplateField HeaderText="Pro-Image">

     <ItemTemplate>

          <asp:Image ID="Image1"

 

--- Folder Name Set

 

//<%# string.Format("~/{0}",Eval("Image"))%>

                  ImageUrl='<%# string.Format("~/{0}",Eval("Image"))%>' Width="150px" Height="100px"   runat="server" />

     </ItemTemplate>

</asp:TemplateField>

Ebook Download
View all
Learn
View all