hi. i try to get all the files from my direction and write the pictures to a <img>, but i got a problem using Server.MapPath(), i cant display my images in the folder, this task would be so much easier if i could get just the filename and i could use ResolveUrl() later but anyways here are the code..
string[] files = Directory.GetFiles(Server.MapPath("~/Content/Upload/Banner/"));
foreach (var file in files)
{
litSlider.Text += string.Format("<img src='{0}' alt='{1}' />", file, file);
}
...
Go to the complete details ...