[Mono-list] xsp/mod_mono setup
Gonzalo Paniagua Javier
gonzalo@ximian.com
Thu, 06 Nov 2003 02:32:19 +0100
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:
>
> <% 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="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>
> ============================================
>
> Can anyone help me figure out what is going wrong?
> Thanks in advance!
Are you using current CVS?
-Gonzalo