Author: mhabersack
Date: 2007-11-20 17:40:33 -0500 (Tue, 20 Nov 2007)
New Revision: 90043

Added:
   trunk/xsp/test/1.1/asp.net/index.aspx
   trunk/xsp/test/1.1/bugs/index.aspx
   trunk/xsp/test/1.1/customcontrol/index.aspx
   trunk/xsp/test/1.1/databind/index.aspx
   trunk/xsp/test/1.1/handlers/index.aspx
   trunk/xsp/test/1.1/hangman-vb/index.aspx
   trunk/xsp/test/1.1/html/index.aspx
   trunk/xsp/test/1.1/index.aspx
   trunk/xsp/test/1.1/runtime/index.aspx
   trunk/xsp/test/1.1/webcontrols/index.aspx
   trunk/xsp/test/1.1/webservice/index.aspx
   trunk/xsp/test/2.0/gridview/index.aspx
   trunk/xsp/test/2.0/index.aspx
   trunk/xsp/test/2.0/masterpages/index.aspx
   trunk/xsp/test/2.0/menu/index.aspx
   trunk/xsp/test/2.0/treeview/index.aspx
   trunk/xsp/test/controls/FileList.ascx
Modified:
   trunk/xsp/ChangeLog
   trunk/xsp/test/1.1/Makefile.am
   trunk/xsp/test/1.1/asp.net/Makefile.am
   trunk/xsp/test/1.1/customcontrol/Makefile.am
   trunk/xsp/test/1.1/databind/Makefile.am
   trunk/xsp/test/1.1/handlers/Makefile.am
   trunk/xsp/test/1.1/html/Makefile.am
   trunk/xsp/test/1.1/webcontrols/Makefile.am
   trunk/xsp/test/1.1/webservice/Makefile.am
   trunk/xsp/test/2.0/Makefile.am
   trunk/xsp/test/2.0/masterpages/Makefile.am
   trunk/xsp/test/2.0/menu/Makefile.am
   trunk/xsp/test/2.0/treeview/Makefile.am
   trunk/xsp/test/controls/Makefile.am
   trunk/xsp/test/mono-xsp.css
Log:
2007-11-21  Marek Habersack  <[EMAIL PROTECTED]>

        * Added several index.aspx files to avoid 404 errors on accessing
        directories.


Modified: trunk/xsp/ChangeLog
===================================================================
--- trunk/xsp/ChangeLog 2007-11-20 22:30:45 UTC (rev 90042)
+++ trunk/xsp/ChangeLog 2007-11-20 22:40:33 UTC (rev 90043)
@@ -1,3 +1,8 @@
+2007-11-21  Marek Habersack  <[EMAIL PROTECTED]>
+
+       * Added several index.aspx files to avoid 404 errors on accessing
+       directories.
+
 2007-11-20  Marek Habersack  <[EMAIL PROTECTED]>
 
        * test/1.1/customcontrol/tabcontrol.aspx: explain how adding links

Modified: trunk/xsp/test/1.1/Makefile.am
===================================================================
--- trunk/xsp/test/1.1/Makefile.am      2007-11-20 22:30:45 UTC (rev 90042)
+++ trunk/xsp/test/1.1/Makefile.am      2007-11-20 22:40:33 UTC (rev 90043)
@@ -1 +1,6 @@
 SUBDIRS = authtest asp.net webcontrols html webservice databind handlers 
customcontrol
+
+samplesdir = $(pkglibdir)/test/1.1/
+samples_DATA = index.aspx
+
+EXTRA_DIST = $(samples_DATA)

Modified: trunk/xsp/test/1.1/asp.net/Makefile.am
===================================================================
--- trunk/xsp/test/1.1/asp.net/Makefile.am      2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/1.1/asp.net/Makefile.am      2007-11-20 22:40:33 UTC (rev 
90043)
@@ -12,7 +12,8 @@
                registertest.aspx \
                server-side-object.aspx \
                session1.aspx \
-               typedesc.aspx
+               typedesc.aspx \
+               index.aspx
 
 typedesc_src = typedesc.cs
 codebehind_src = codebehind1.cs

Added: trunk/xsp/test/1.1/asp.net/index.aspx
===================================================================
--- trunk/xsp/test/1.1/asp.net/index.aspx       2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/1.1/asp.net/index.aspx       2007-11-20 22:40:33 UTC (rev 
90043)
@@ -0,0 +1,19 @@
+<%@ Page Language="C#" %>
+<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" 
src="~/controls/MonoSamplesHeader.ascx" %>
+<%@ Register TagPrefix="mono" TagName="FileList" 
src="~/controls/FileList.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Directory index</title>
+<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+</head>
+<body><mono:MonoSamplesHeader runat="server"/>
+<form runat="server">
+  <p>The following directories and files are found in this directory:</p>
+  <blockquote>
+    <mono:FileList runat="server"/>
+  </blockquote>
+</form>
+</body>
+</html>

Added: trunk/xsp/test/1.1/bugs/index.aspx
===================================================================
--- trunk/xsp/test/1.1/bugs/index.aspx  2007-11-20 22:30:45 UTC (rev 90042)
+++ trunk/xsp/test/1.1/bugs/index.aspx  2007-11-20 22:40:33 UTC (rev 90043)
@@ -0,0 +1,19 @@
+<%@ Page Language="C#" %>
+<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" 
src="~/controls/MonoSamplesHeader.ascx" %>
+<%@ Register TagPrefix="mono" TagName="FileList" 
src="~/controls/FileList.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Directory index</title>
+<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+</head>
+<body><mono:MonoSamplesHeader runat="server"/>
+<form runat="server">
+  <p>The following directories and files are found in this directory:</p>
+  <blockquote>
+    <mono:FileList runat="server"/>
+  </blockquote>
+</form>
+</body>
+</html>

Modified: trunk/xsp/test/1.1/customcontrol/Makefile.am
===================================================================
--- trunk/xsp/test/1.1/customcontrol/Makefile.am        2007-11-20 22:30:45 UTC 
(rev 90042)
+++ trunk/xsp/test/1.1/customcontrol/Makefile.am        2007-11-20 22:40:33 UTC 
(rev 90043)
@@ -2,7 +2,8 @@
 
 testfiles = \
                tabcontrol2.aspx \
-               tabcontrol.aspx
+               tabcontrol.aspx \
+               index.aspx
                
 tabcontrol_src = tabcontrol.cs
 tabcontrol2_src = tabcontrol2.cs

Added: trunk/xsp/test/1.1/customcontrol/index.aspx
===================================================================
--- trunk/xsp/test/1.1/customcontrol/index.aspx 2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/1.1/customcontrol/index.aspx 2007-11-20 22:40:33 UTC (rev 
90043)
@@ -0,0 +1,19 @@
+<%@ Page Language="C#" %>
+<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" 
src="~/controls/MonoSamplesHeader.ascx" %>
+<%@ Register TagPrefix="mono" TagName="FileList" 
src="~/controls/FileList.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Directory index</title>
+<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+</head>
+<body><mono:MonoSamplesHeader runat="server"/>
+<form runat="server">
+  <p>The following directories and files are found in this directory:</p>
+  <blockquote>
+    <mono:FileList runat="server"/>
+  </blockquote>
+</form>
+</body>
+</html>

Modified: trunk/xsp/test/1.1/databind/Makefile.am
===================================================================
--- trunk/xsp/test/1.1/databind/Makefile.am     2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/1.1/databind/Makefile.am     2007-11-20 22:40:33 UTC (rev 
90043)
@@ -3,6 +3,7 @@
                databind-arraylist.aspx \
                databind-attribute.aspx \
                databind-class.aspx \
-               databind-template.aspx
+               databind-template.aspx \
+               index.aspx
 
 EXTRA_DIST = $(authsample_DATA)

Added: trunk/xsp/test/1.1/databind/index.aspx
===================================================================
--- trunk/xsp/test/1.1/databind/index.aspx      2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/1.1/databind/index.aspx      2007-11-20 22:40:33 UTC (rev 
90043)
@@ -0,0 +1,19 @@
+<%@ Page Language="C#" %>
+<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" 
src="~/controls/MonoSamplesHeader.ascx" %>
+<%@ Register TagPrefix="mono" TagName="FileList" 
src="~/controls/FileList.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Directory index</title>
+<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+</head>
+<body><mono:MonoSamplesHeader runat="server"/>
+<form runat="server">
+  <p>The following directories and files are found in this directory:</p>
+  <blockquote>
+    <mono:FileList runat="server"/>
+  </blockquote>
+</form>
+</body>
+</html>

Modified: trunk/xsp/test/1.1/handlers/Makefile.am
===================================================================
--- trunk/xsp/test/1.1/handlers/Makefile.am     2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/1.1/handlers/Makefile.am     2007-11-20 22:40:33 UTC (rev 
90043)
@@ -4,6 +4,7 @@
                empty.ashx \
                monodoc.ashx \
                webhandler.ashx \
-               async.ashx
+               async.ashx \
+               index.aspx
 
 EXTRA_DIST = $(authsample_DATA)

Added: trunk/xsp/test/1.1/handlers/index.aspx
===================================================================
--- trunk/xsp/test/1.1/handlers/index.aspx      2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/1.1/handlers/index.aspx      2007-11-20 22:40:33 UTC (rev 
90043)
@@ -0,0 +1,19 @@
+<%@ Page Language="C#" %>
+<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" 
src="~/controls/MonoSamplesHeader.ascx" %>
+<%@ Register TagPrefix="mono" TagName="FileList" 
src="~/controls/FileList.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Directory index</title>
+<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+</head>
+<body><mono:MonoSamplesHeader runat="server"/>
+<form runat="server">
+  <p>The following directories and files are found in this directory:</p>
+  <blockquote>
+    <mono:FileList runat="server"/>
+  </blockquote>
+</form>
+</body>
+</html>

Added: trunk/xsp/test/1.1/hangman-vb/index.aspx
===================================================================
--- trunk/xsp/test/1.1/hangman-vb/index.aspx    2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/1.1/hangman-vb/index.aspx    2007-11-20 22:40:33 UTC (rev 
90043)
@@ -0,0 +1,19 @@
+<%@ Page Language="C#" %>
+<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" 
src="~/controls/MonoSamplesHeader.ascx" %>
+<%@ Register TagPrefix="mono" TagName="FileList" 
src="~/controls/FileList.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Directory index</title>
+<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+</head>
+<body><mono:MonoSamplesHeader runat="server"/>
+<form runat="server">
+  <p>The following directories and files are found in this directory:</p>
+  <blockquote>
+    <mono:FileList runat="server"/>
+  </blockquote>
+</form>
+</body>
+</html>

Modified: trunk/xsp/test/1.1/html/Makefile.am
===================================================================
--- trunk/xsp/test/1.1/html/Makefile.am 2007-11-20 22:30:45 UTC (rev 90042)
+++ trunk/xsp/test/1.1/html/Makefile.am 2007-11-20 22:40:33 UTC (rev 90043)
@@ -14,6 +14,7 @@
                htmlinputtext.aspx \
                htmlselect.aspx \
                htmltable.aspx \
-               htmltextarea.aspx
+               htmltextarea.aspx \
+               index.aspx
 
 EXTRA_DIST = $(authsample_DATA)

Added: trunk/xsp/test/1.1/html/index.aspx
===================================================================
--- trunk/xsp/test/1.1/html/index.aspx  2007-11-20 22:30:45 UTC (rev 90042)
+++ trunk/xsp/test/1.1/html/index.aspx  2007-11-20 22:40:33 UTC (rev 90043)
@@ -0,0 +1,19 @@
+<%@ Page Language="C#" %>
+<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" 
src="~/controls/MonoSamplesHeader.ascx" %>
+<%@ Register TagPrefix="mono" TagName="FileList" 
src="~/controls/FileList.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Directory index</title>
+<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+</head>
+<body><mono:MonoSamplesHeader runat="server"/>
+<form runat="server">
+  <p>The following directories and files are found in this directory:</p>
+  <blockquote>
+    <mono:FileList runat="server"/>
+  </blockquote>
+</form>
+</body>
+</html>

Added: trunk/xsp/test/1.1/index.aspx
===================================================================
--- trunk/xsp/test/1.1/index.aspx       2007-11-20 22:30:45 UTC (rev 90042)
+++ trunk/xsp/test/1.1/index.aspx       2007-11-20 22:40:33 UTC (rev 90043)
@@ -0,0 +1,19 @@
+<%@ Page Language="C#" %>
+<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" 
src="~/controls/MonoSamplesHeader.ascx" %>
+<%@ Register TagPrefix="mono" TagName="FileList" 
src="~/controls/FileList.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Directory index</title>
+<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+</head>
+<body><mono:MonoSamplesHeader runat="server"/>
+<form runat="server">
+  <p>The following directories and files are found in this directory:</p>
+  <blockquote>
+    <mono:FileList runat="server"/>
+  </blockquote>
+</form>
+</body>
+</html>

Added: trunk/xsp/test/1.1/runtime/index.aspx
===================================================================
--- trunk/xsp/test/1.1/runtime/index.aspx       2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/1.1/runtime/index.aspx       2007-11-20 22:40:33 UTC (rev 
90043)
@@ -0,0 +1,19 @@
+<%@ Page Language="C#" %>
+<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" 
src="~/controls/MonoSamplesHeader.ascx" %>
+<%@ Register TagPrefix="mono" TagName="FileList" 
src="~/controls/FileList.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Directory index</title>
+<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+</head>
+<body><mono:MonoSamplesHeader runat="server"/>
+<form runat="server">
+  <p>The following directories and files are found in this directory:</p>
+  <blockquote>
+    <mono:FileList runat="server"/>
+  </blockquote>
+</form>
+</body>
+</html>

Modified: trunk/xsp/test/1.1/webcontrols/Makefile.am
===================================================================
--- trunk/xsp/test/1.1/webcontrols/Makefile.am  2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/1.1/webcontrols/Makefile.am  2007-11-20 22:40:33 UTC (rev 
90043)
@@ -34,7 +34,8 @@
                dbpage2.aspx \
                people.xml \
                web_adrotator.xml \
-               peopletable.xsl
+               peopletable.xsl \
+               index.aspx
 
 sqlitedir = $(pkglibdir)/test/1.1/webcontrols
 sqlite_DATA = dbpage1.sqlite \

Added: trunk/xsp/test/1.1/webcontrols/index.aspx
===================================================================
--- trunk/xsp/test/1.1/webcontrols/index.aspx   2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/1.1/webcontrols/index.aspx   2007-11-20 22:40:33 UTC (rev 
90043)
@@ -0,0 +1,19 @@
+<%@ Page Language="C#" %>
+<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" 
src="~/controls/MonoSamplesHeader.ascx" %>
+<%@ Register TagPrefix="mono" TagName="FileList" 
src="~/controls/FileList.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Directory index</title>
+<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+</head>
+<body><mono:MonoSamplesHeader runat="server"/>
+<form runat="server">
+  <p>The following directories and files are found in this directory:</p>
+  <blockquote>
+    <mono:FileList runat="server"/>
+  </blockquote>
+</form>
+</body>
+</html>

Modified: trunk/xsp/test/1.1/webservice/Makefile.am
===================================================================
--- trunk/xsp/test/1.1/webservice/Makefile.am   2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/1.1/webservice/Makefile.am   2007-11-20 22:40:33 UTC (rev 
90043)
@@ -4,7 +4,8 @@
                ConverterService.asmx \
                TestService.asmx \
                ServiceClient.exe.config  \
-               CompressExtension.cs
+               CompressExtension.cs \
+               index.aspx
 
 extensions_src = TraceExtension.cs EncryptExtension.cs DumpExtension.cs
 serviceclient_src = ServiceClient.cs Reference.cs

Added: trunk/xsp/test/1.1/webservice/index.aspx
===================================================================
--- trunk/xsp/test/1.1/webservice/index.aspx    2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/1.1/webservice/index.aspx    2007-11-20 22:40:33 UTC (rev 
90043)
@@ -0,0 +1,19 @@
+<%@ Page Language="C#" %>
+<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" 
src="~/controls/MonoSamplesHeader.ascx" %>
+<%@ Register TagPrefix="mono" TagName="FileList" 
src="~/controls/FileList.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Directory index</title>
+<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+</head>
+<body><mono:MonoSamplesHeader runat="server"/>
+<form runat="server">
+  <p>The following directories and files are found in this directory:</p>
+  <blockquote>
+    <mono:FileList runat="server"/>
+  </blockquote>
+</form>
+</body>
+</html>

Modified: trunk/xsp/test/2.0/Makefile.am
===================================================================
--- trunk/xsp/test/2.0/Makefile.am      2007-11-20 22:30:45 UTC (rev 90042)
+++ trunk/xsp/test/2.0/Makefile.am      2007-11-20 22:40:33 UTC (rev 90043)
@@ -1 +1,6 @@
 SUBDIRS = menu treeview masterpages
+
+samplesdir = $(pkglibdir)/test/1.1/
+samples_DATA = index.aspx
+
+EXTRA_DIST = $(samples_DATA)

Added: trunk/xsp/test/2.0/gridview/index.aspx
===================================================================
--- trunk/xsp/test/2.0/gridview/index.aspx      2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/2.0/gridview/index.aspx      2007-11-20 22:40:33 UTC (rev 
90043)
@@ -0,0 +1,19 @@
+<%@ Page Language="C#" %>
+<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" 
src="~/controls/MonoSamplesHeader.ascx" %>
+<%@ Register TagPrefix="mono" TagName="FileList" 
src="~/controls/FileList.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Directory index</title>
+<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+</head>
+<body><mono:MonoSamplesHeader runat="server"/>
+<form runat="server">
+  <p>The following directories and files are found in this directory:</p>
+  <blockquote>
+    <mono:FileList runat="server"/>
+  </blockquote>
+</form>
+</body>
+</html>

Added: trunk/xsp/test/2.0/index.aspx
===================================================================
--- trunk/xsp/test/2.0/index.aspx       2007-11-20 22:30:45 UTC (rev 90042)
+++ trunk/xsp/test/2.0/index.aspx       2007-11-20 22:40:33 UTC (rev 90043)
@@ -0,0 +1,19 @@
+<%@ Page Language="C#" %>
+<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" 
src="~/controls/MonoSamplesHeader.ascx" %>
+<%@ Register TagPrefix="mono" TagName="FileList" 
src="~/controls/FileList.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Directory index</title>
+<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+</head>
+<body><mono:MonoSamplesHeader runat="server"/>
+<form runat="server">
+  <p>The following directories and files are found in this directory:</p>
+  <blockquote>
+    <mono:FileList runat="server"/>
+  </blockquote>
+</form>
+</body>
+</html>

Modified: trunk/xsp/test/2.0/masterpages/Makefile.am
===================================================================
--- trunk/xsp/test/2.0/masterpages/Makefile.am  2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/2.0/masterpages/Makefile.am  2007-11-20 22:40:33 UTC (rev 
90043)
@@ -4,6 +4,7 @@
                simple.aspx \
                frame.master \
                content1.aspx \
-               content2.aspx
+               content2.aspx \
+               index.aspx
 
 EXTRA_DIST = $(samples_DATA)

Added: trunk/xsp/test/2.0/masterpages/index.aspx
===================================================================
--- trunk/xsp/test/2.0/masterpages/index.aspx   2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/2.0/masterpages/index.aspx   2007-11-20 22:40:33 UTC (rev 
90043)
@@ -0,0 +1,19 @@
+<%@ Page Language="C#" %>
+<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" 
src="~/controls/MonoSamplesHeader.ascx" %>
+<%@ Register TagPrefix="mono" TagName="FileList" 
src="~/controls/FileList.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Directory index</title>
+<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+</head>
+<body><mono:MonoSamplesHeader runat="server"/>
+<form runat="server">
+  <p>The following directories and files are found in this directory:</p>
+  <blockquote>
+    <mono:FileList runat="server"/>
+  </blockquote>
+</form>
+</body>
+</html>

Modified: trunk/xsp/test/2.0/menu/Makefile.am
===================================================================
--- trunk/xsp/test/2.0/menu/Makefile.am 2007-11-20 22:30:45 UTC (rev 90042)
+++ trunk/xsp/test/2.0/menu/Makefile.am 2007-11-20 22:40:33 UTC (rev 90043)
@@ -4,6 +4,7 @@
                menu2.aspx \
                stock_copy_24.png \
                stock_cut_24.png \
-               stock_paste_24.png
+               stock_paste_24.png \
+               index.aspx
 
 EXTRA_DIST = $(samples_DATA)

Added: trunk/xsp/test/2.0/menu/index.aspx
===================================================================
--- trunk/xsp/test/2.0/menu/index.aspx  2007-11-20 22:30:45 UTC (rev 90042)
+++ trunk/xsp/test/2.0/menu/index.aspx  2007-11-20 22:40:33 UTC (rev 90043)
@@ -0,0 +1,19 @@
+<%@ Page Language="C#" %>
+<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" 
src="~/controls/MonoSamplesHeader.ascx" %>
+<%@ Register TagPrefix="mono" TagName="FileList" 
src="~/controls/FileList.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Directory index</title>
+<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+</head>
+<body><mono:MonoSamplesHeader runat="server"/>
+<form runat="server">
+  <p>The following directories and files are found in this directory:</p>
+  <blockquote>
+    <mono:FileList runat="server"/>
+  </blockquote>
+</form>
+</body>
+</html>

Modified: trunk/xsp/test/2.0/treeview/Makefile.am
===================================================================
--- trunk/xsp/test/2.0/treeview/Makefile.am     2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/2.0/treeview/Makefile.am     2007-11-20 22:40:33 UTC (rev 
90043)
@@ -2,7 +2,8 @@
                populate-on-demand.aspx \
                populate.cs \
                treeview.aspx \
-               treeview-databound.aspx
+               treeview-databound.aspx \
+               index.aspx
 
 treeview_src = populate.cs
 treeview_build = $(addprefix $(srcdir)/, $(treeview_src))

Added: trunk/xsp/test/2.0/treeview/index.aspx
===================================================================
--- trunk/xsp/test/2.0/treeview/index.aspx      2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/2.0/treeview/index.aspx      2007-11-20 22:40:33 UTC (rev 
90043)
@@ -0,0 +1,19 @@
+<%@ Page Language="C#" %>
+<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" 
src="~/controls/MonoSamplesHeader.ascx" %>
+<%@ Register TagPrefix="mono" TagName="FileList" 
src="~/controls/FileList.ascx" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Directory index</title>
+<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+</head>
+<body><mono:MonoSamplesHeader runat="server"/>
+<form runat="server">
+  <p>The following directories and files are found in this directory:</p>
+  <blockquote>
+    <mono:FileList runat="server"/>
+  </blockquote>
+</form>
+</body>
+</html>

Added: trunk/xsp/test/controls/FileList.ascx
===================================================================
--- trunk/xsp/test/controls/FileList.ascx       2007-11-20 22:30:45 UTC (rev 
90042)
+++ trunk/xsp/test/controls/FileList.ascx       2007-11-20 22:40:33 UTC (rev 
90043)
@@ -0,0 +1,30 @@
+<%@ Control Language="C#" %>
+<%@ Import Namespace="System.Collections" %>
+<%@ Import Namespace="System.IO" %>
+<%@ Import Namespace="System.Text" %>
+<%
+   ArrayList dirs = new ArrayList ();
+   ArrayList files = new ArrayList ();
+   string physPath = Path.GetDirectoryName (Request.PhysicalPath);
+   DirectoryInfo dir = new DirectoryInfo (physPath);
+   
+   foreach (string d in Directory.GetDirectories (physPath))
+          dirs.Add (d);
+   foreach (string f in Directory.GetFiles (physPath)) {
+          if (f == "index.aspx" || f == "default.aspx")
+                 continue;
+
+          files.Add (f);
+   }
+
+   StringBuilder sb = new StringBuilder ("<ul class=\"dirlist\">");
+   dirs.Sort ();
+   foreach (string d in dirs)
+          sb.AppendFormat ("<li><a href=\"{0}\" 
class=\"indexDirectory\">{0}</a></li>", Path.GetFileName (d));
+  
+   files.Sort ();
+   foreach (string f in files)
+          sb.AppendFormat ("<li><a href=\"{0}\" 
class=\"indexFile\">{0}</a></li>", Path.GetFileName (f));
+
+   Response.Write (sb.ToString ());
+%>

Modified: trunk/xsp/test/controls/Makefile.am
===================================================================
--- trunk/xsp/test/controls/Makefile.am 2007-11-20 22:30:45 UTC (rev 90042)
+++ trunk/xsp/test/controls/Makefile.am 2007-11-20 22:40:33 UTC (rev 90043)
@@ -1,6 +1,9 @@
 samplesdir = $(pkglibdir)/test/controls/
 
-testfiles = BreadCrumbs_1.1.ascx BreadCrumbs_2.0.ascx MonoSamplesHeader.ascx
+testfiles = BreadCrumbs_1.1.ascx \
+           BreadCrumbs_2.0.ascx \
+           MonoSamplesHeader.ascx \
+           FileList.ascx
 
 samples_DATA = $(testfiles)
 

Modified: trunk/xsp/test/mono-xsp.css
===================================================================
--- trunk/xsp/test/mono-xsp.css 2007-11-20 22:30:45 UTC (rev 90042)
+++ trunk/xsp/test/mono-xsp.css 2007-11-20 22:40:33 UTC (rev 90043)
@@ -39,6 +39,7 @@
        list-style: url(small-icon.png);
 }
 
+a.indexDirectory { font-weight: bold; }
 a.aspx { background: #f1f1ed; }
 a.ashx { background: #0cc; }
 a.asmx { background: #ee0; }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to