Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (22 sloc) 648 Bytes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.IO;
public partial class lbv : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
StringBuilder sb = new StringBuilder();
DirectoryInfo di = new DirectoryInfo(Server.MapPath("lbv"));
FileInfo[] files = di.GetFiles();
foreach (FileInfo fi in files)
{
sb.Append("<img src=\"lbv/" + fi.Name + "\" /> <br/>" + fi.Name + "<p/>");
}
myLiteral.Text = sb.ToString();
}
}