I’m a newbie to ASP.NET and I’m having trouble finding a solution to display images retrieved from database as list with CSS style. There are a couple of solutions I’ve found, like using DataList, DataGrid, Repeater, etc. but they all end up displaying images in table cells, and the spacing is dynamic with the number of images fetched. So I’m wondering whether there is any way to display images in ASP.NET image control along with CSS style (like how you can do with PHP, I know how weird that sounds). Or is there anyway to display them neatly in fixed columns? I’m a dummy here so please be kind to me and help me. Any suggestion is appreciated.
Share
If you are using WebForms and want to stick with the .net controls, have a look at ListView