Dynamically create img tag from file/image list in directory
Posted on 2011-09-18
I have the below - sime image list inside a div - is there a way - in .NET/C# - to take all the images out of a directory and generate a dynamic image list as is per the static representation below - in something like maybe a placeholder, etc.?
<img src="../gallery/images/p1.jpg" alt="" title="Portraits" />
<img src="../gallery/images/p2.jpg" alt="" title="Portraits" />