I am trying to generate a list of uploaded (attached) files to an form in ASP.NET
class object UploadFileItem
attributes:: string FileName, string FileSize, Image FileTypeImage
I have been able to generate an IList of itmes UploadFileItem
but if I use something like a GridView control, I can bind the IList, but only the string data is displayed and the Image attribute is just ignored.
The actual images are small bmp files and are assigned based on the file extension.
I am trying for the simplest code behind solution in c# so that I can populate an IList with objects, and bind the control to display the graphic, file name, date and size (basically mimicing an explorer list of files. (xls has Excel Icon, .doc Word Icon, etc)..
I've run across a lot of topics on Google, but none seem address a file listing.
I have tried changing the attribute for TypeImage to string, and setting an image url path based on this, but still can not find a way to bind into the grid.
I'm new to c# and asp.net, so for all I know I'm using an inappropriate control.