Friday, 6 December 2013

grid view image using folder in asp.net

grid view image using folder in asp.net :


aspx :

 <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>

No comments:

Post a Comment