Permalink
Browse files

added a special page for amanda to see bashful

  • Loading branch information...
1 parent e6d907e commit 9059849e280b6afeea52bfd0f82cbf32f0ebb25c unknown committed Dec 16, 2011
Showing with 35 additions and 0 deletions.
  1. +8 −0 amanda.aspx
  2. +27 −0 amanda.aspx.cs
View
@@ -0,0 +1,8 @@
+<%@ Page Title="" Language="C#" MasterPageFile="~/main.master" AutoEventWireup="true" CodeFile="amanda.aspx.cs" Inherits="amanda" %>
+
+<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
+<font color="white">
+<asp:Literal runat="server" ID="myLiteral"></asp:Literal>
+</font>
+</asp:Content>
+
View
@@ -0,0 +1,27 @@
+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 amanda : System.Web.UI.Page
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ StringBuilder sb = new StringBuilder();
+ DirectoryInfo di = new DirectoryInfo(Server.MapPath("amanda"));
+ FileInfo[] files = di.GetFiles();
+
+
+ foreach (FileInfo fi in files)
+ {
+ sb.Append("<img src=\"amanda/" + fi.Name + "\" /> <br/>" + fi.Name + "<p/>");
+
+ }
+
+ myLiteral.Text = sb.ToString();
+ }
+}

0 comments on commit 9059849

Please sign in to comment.