Title: xsp/mod_mono setup

Below is the output of setting up xsp and mod_mono per the install file
in mod_mono.....

=======================================
<%@ language="C#" %> <%@ Import namespace="System.IO" %>
Welcome to Mono XSP!
http://www.go-mono.com

Here are some ASP.NET examples:

<% DirectoryInfo dir = new DirectoryInfo (Path.GetDirectoryName
(Request.PhysicalPath)); FileInfo[] files = dir.GetFiles ();
StringBuilder sb = new StringBuilder (); Hashtable styles = new
Hashtable (); styles [".aspx"] = "background: #ffffff"; styles [".ashx"]
= "background: #00cccc"; styles [".asmx"] = "background: #eeee00"; for
(int i=0; i < files.Length; i++) { string fileName =
Path.GetFileName(files[i].FullName); string extension =
Path.GetExtension (files[i].FullName); if (styles.Contains (extension))
{ sb.AppendFormat ("
  * {0}
\n", fileName, styles [extension]); } } FileList.Text = sb.ToString ();
%>

________________________________________________________________________
Generated: <%= DateTime.Now %>
===================================

That is just the way it appeared in the browser, altho the "Welcome to
Mono XSP! " was in a larger font size. Here is the page source....

===================================
<%@ language="C#" %>
<%@ Import namespace="System.IO" %>
<html>
<head>
<title>Welcome to Mono XSP!</title>
</head>
<body>
<h1>Welcome to Mono XSP!</h1>
<a href="" href="http://www.go-mono.com" TARGET="_blank">http://www.go-mono.com"><img src="" alt="http://www.go-mono.com"></a>
<p>Here are some ASP.NET examples:</p>
<%
DirectoryInfo dir = new DirectoryInfo (Path.GetDirectoryName (Request.PhysicalPath));
FileInfo[] files = dir.GetFiles ();
StringBuilder sb = new StringBuilder ();
Hashtable styles = new Hashtable ();
styles [".aspx"] = "background: #ffffff";
styles [".ashx"] = "background: #00cccc";
styles [".asmx"] = "background: #eeee00";
for (int i=0; i < files.Length; i++) {
        string fileName = Path.GetFileName(files[i].FullName);
        string extension = Path.GetExtension (files[i].FullName);
        if (styles.Contains (extension)) {
                sb.AppendFormat ("<li><a style=\"{1}\" href="" fileName, styles [extension]);
        }
}
FileList.Text = sb.ToString ();
%>
<ul>
<asp:Label id="FileList" runat="server" />
</ul>
<hr />
<small>Generated: <%= DateTime.Now %></small>
</html>
============================================

Can anyone help me figure out what is going wrong?
Thanks in advance!

Ken Benson

--------------------------------------
It does not take a majority to prevail, but rather an irate, tireless minority keen to set brushfires in the peoples' mind.

-Samuel Adams

"Government, like fire, is our most useful servant, if fully controlled by us, its citizens! And government, exactly like fire, becomes our most destructive master, if not fully controlled by the open majority of its constructive, working citizens!"

-George Washington 

Reply via email to