Title: RE: [Mono-list] xsp/mod_mono setup
OK, as a follow on to my problem...I did a cvs update, then a make clean; autogen.sh
make; make install with my prefix. It still does the same thing from Mozilla on the
development box and when I tested from a Windows box with IE 6 the language/import
statement is gone, the mono logo is there, no other code shows, but no examples are
displayed and the date time generated is not showing. I've attached a file with the
page source as seen by IE 6 in it. If you want a screen print let me know.
-----Original Message-----
From: Kenneth Benson [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 6:03 PM
To: 'Gonzalo Paniagua Javier'; [EMAIL PROTECTED]
Subject: RE: [Mono-list] xsp/mod_mono setup

I think it's about 6-7 days old. I'll get a fresh CVS tomorrow and give it a try.

-----Original Message-----
From: Gonzalo Paniagua Javier [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 05, 2003 8:32 PM
To: [EMAIL PROTECTED]
Subject: Re: [Mono-list] xsp/mod_mono setup


El mié, 05-11-2003 a las 20:02, Kenneth Benson escribió:
> 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:
>

[snip]

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

Are you using current CVS?

-Gonzalo


_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

<%@ language="C#" %>
<%@ Import namespace="System.IO" %>
<html>
<head>
<title>Welcome to Mono XSP!</title>
</head>
<body>
<h1>Welcome to Mono XSP!</h1>
<a href="http://www.go-mono.com";><img src="mono.png" 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=\"{0}\">{0}</a></li>\n", 
fileName, styles [extension]);
        }
}
FileList.Text = sb.ToString ();
%>
<ul>
<asp:Label id="FileList" runat="server" />
</ul>
<hr />
<small>Generated: <%= DateTime.Now %></small>
</html>

Reply via email to