I have used this C# code to get all of my images url's into an array called m_arrayImageNames:
I put a datagrid onto my webform but i cannot figure out how to get the images into the grid.Code:m_arrImageNames = Directory.GetFiles(m_strImageDirectory);
I did a search and could only find information on how to load images from a database - not what I am trying to do.
Here is the .aspx code which doesnt' work:
Can someone help?Code:<Columns> <asp:TemplateColumn> <HeaderStyle HorizontalAlign="Center"></HeaderStyle> <HeaderTemplate> Images </HeaderTemplate> <ItemTemplate> <asp:Image id="Image2" runat="server"></asp:Image> </ItemTemplate> </asp:TemplateColumn> </Columns>




Reply With Quote