2007-11-21 Marek Habersack <mhabersack@novell.com>

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

svn path=/trunk/xsp/; revision=90043
This commit is contained in:
Marek Habersack 2007-11-20 22:40:33 +00:00
Родитель 3577caaabb
Коммит 1b9cae772b
32 изменённых файлов: 374 добавлений и 11 удалений

Просмотреть файл

@ -1,3 +1,8 @@
2007-11-21 Marek Habersack <mhabersack@novell.com>
* Added several index.aspx files to avoid 404 errors on accessing
directories.
2007-11-20 Marek Habersack <mhabersack@novell.com>
* test/1.1/customcontrol/tabcontrol.aspx: explain how adding links

Просмотреть файл

@ -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)

Просмотреть файл

@ -12,7 +12,8 @@ testfiles = \
registertest.aspx \
server-side-object.aspx \
session1.aspx \
typedesc.aspx
typedesc.aspx \
index.aspx
typedesc_src = typedesc.cs
codebehind_src = codebehind1.cs

Просмотреть файл

@ -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>

19
test/1.1/bugs/index.aspx Normal file
Просмотреть файл

@ -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>

Просмотреть файл

@ -2,7 +2,8 @@ samplesdir = $(pkglibdir)/test/1.1/customcontrol
testfiles = \
tabcontrol2.aspx \
tabcontrol.aspx
tabcontrol.aspx \
index.aspx
tabcontrol_src = tabcontrol.cs
tabcontrol2_src = tabcontrol2.cs

Просмотреть файл

@ -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>

Просмотреть файл

@ -3,6 +3,7 @@ authsample_DATA = \
databind-arraylist.aspx \
databind-attribute.aspx \
databind-class.aspx \
databind-template.aspx
databind-template.aspx \
index.aspx
EXTRA_DIST = $(authsample_DATA)

Просмотреть файл

@ -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>

Просмотреть файл

@ -4,6 +4,7 @@ authsample_DATA = \
empty.ashx \
monodoc.ashx \
webhandler.ashx \
async.ashx
async.ashx \
index.aspx
EXTRA_DIST = $(authsample_DATA)

Просмотреть файл

@ -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>

Просмотреть файл

@ -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>

Просмотреть файл

@ -14,6 +14,7 @@ authsample_DATA = \
htmlinputtext.aspx \
htmlselect.aspx \
htmltable.aspx \
htmltextarea.aspx
htmltextarea.aspx \
index.aspx
EXTRA_DIST = $(authsample_DATA)

19
test/1.1/html/index.aspx Normal file
Просмотреть файл

@ -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>

19
test/1.1/index.aspx Normal file
Просмотреть файл

@ -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>

Просмотреть файл

@ -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>

Просмотреть файл

@ -34,7 +34,8 @@ samples_DATA = \
dbpage2.aspx \
people.xml \
web_adrotator.xml \
peopletable.xsl
peopletable.xsl \
index.aspx
sqlitedir = $(pkglibdir)/test/1.1/webcontrols
sqlite_DATA = dbpage1.sqlite \

Просмотреть файл

@ -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>

Просмотреть файл

@ -4,7 +4,8 @@ testfiles = \
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

Просмотреть файл

@ -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>

Просмотреть файл

@ -1 +1,6 @@
SUBDIRS = menu treeview masterpages
samplesdir = $(pkglibdir)/test/1.1/
samples_DATA = index.aspx
EXTRA_DIST = $(samples_DATA)

Просмотреть файл

@ -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>

19
test/2.0/index.aspx Normal file
Просмотреть файл

@ -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>

Просмотреть файл

@ -4,6 +4,7 @@ samples_DATA = \
simple.aspx \
frame.master \
content1.aspx \
content2.aspx
content2.aspx \
index.aspx
EXTRA_DIST = $(samples_DATA)

Просмотреть файл

@ -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>

Просмотреть файл

@ -4,6 +4,7 @@ samples_DATA = \
menu2.aspx \
stock_copy_24.png \
stock_cut_24.png \
stock_paste_24.png
stock_paste_24.png \
index.aspx
EXTRA_DIST = $(samples_DATA)

19
test/2.0/menu/index.aspx Normal file
Просмотреть файл

@ -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>

Просмотреть файл

@ -2,7 +2,8 @@ testfiles = \
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))

Просмотреть файл

@ -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>

Просмотреть файл

@ -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 ());
%>

Просмотреть файл

@ -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)

Просмотреть файл

@ -39,6 +39,7 @@ ul.dirlist {
list-style: url(small-icon.png);
}
a.indexDirectory { font-weight: bold; }
a.aspx { background: #f1f1ed; }
a.ashx { background: #0cc; }
a.asmx { background: #ee0; }