Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (22 sloc) 0.655 kB
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 sean : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
StringBuilder sb = new StringBuilder();
DirectoryInfo di = new DirectoryInfo(Server.MapPath("forsean"));
FileInfo[] files = di.GetFiles();
foreach (FileInfo fi in files)
{
sb.Append("<img src=\"forsean/" + fi.Name + "\" /> <br/>" + fi.Name + "<p/>");
}
myLiteral.Text = sb.ToString();
}
}
Jump to Line
Something went wrong with that request. Please try again.