Author: miguel
Date: 2005-04-30 15:48:22 -0400 (Sat, 30 Apr 2005)
New Revision: 43832
Modified:
trunk/xsp/test/index.aspx
Log:
Emit warning
Modified: trunk/xsp/test/index.aspx
===================================================================
--- trunk/xsp/test/index.aspx 2005-04-30 16:54:12 UTC (rev 43831)
+++ trunk/xsp/test/index.aspx 2005-04-30 19:48:22 UTC (rev 43832)
@@ -17,6 +17,9 @@
sb.Append (ReadDirectory (Path.Combine (Path.GetDirectoryName
(Request.PhysicalPath), "1.1"), "1.1/"));
sb.Append ("</ul>");
fileList.Text = sb.ToString ();
+ if (File.Exists ("Makefile") && File.Exists ("Makefile.am")){
+ warning.InnerText = "You are running XSP on the
distribution directory, not the installed directory. Not all samples will
work";
+ }
}
public string ReadDirectory (string path, string basePath)
@@ -53,6 +56,8 @@
</div>
</div>
+<div id="warning" runat="server" style="background: red;"></div>
+
<p>Here are some ASP.NET examples:</p>
<asp:Literal id="fileList" runat="server" />
<hr />
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches