<div style="float:right ; width:500px"> <div id="galleria" style="height: 320px;"> @{ var temp_path = System.Web.HttpContext.Current.Server.MapPath("~/temp/"); //Path.GetTempPath(); DirectoryInfo thisdir = new DirectoryInfo(temp_path); Directory.GetFiles(temp_path); int i=1; foreach (FileInfo fInfo in thisdir.GetFiles("*.png", SearchOption.AllDirectories)) { <a href="@fInfo.FullName"> <img title="@fInfo.Name" src="@fInfo.FullName"> </a> } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)