I want to generate a unordered list which contains tag for showing images in my database, I take a look at bulleted list, but it is not working with image. How can i dynami
I suppose your datasource is a DataSet ds that has one DataTable and a field picpath, then you can write the iteration directly in aspx
<% foreach (DataRow dr in ds.Tables[0].Rows) { %>
- " alt="" title=""/>
<% } %>
To do it server side see the accepted answer in below link see the accepted answer in the following link Rendering an unordered list using asp.net