[Mono-devel-list] XSP not processing simple ASP.NET page
Gonzalo Paniagua Javier
gonzalo at ximian.com
Tue Mar 16 18:49:17 EST 2004
El mar, 16-03-2004 a las 18:04, Chris List Recipient escribió:
> I am brand spanking new to mono. I installed the latest mono and xsp on SuSE
> 9.x using the binary RPMs. I can compile and run the a "hello world" app
> from the command line. I can run the XSP and serve up HTML pages. Now I am
> trying to serve up an aspx page. I get an error viewing the simple ASP.NET
> test example. It appears to be shoving my cs source code smack into the
> middle of the mono-generated source code. There must be something
> fundamentally wrong.
>
> Here is the source to test2.aspx:
>
> ----------------
> <%@ Page Language="C#" %><% // This is executed at page startup
>
> public void Page_Load()
> {
> label1.InnerHtml = now();
> }
>
> %>
[...]
This is wrong. And also fails under MS runtime.
You should be doing:
---
<script runat="server>
public void Page_Load ()
{
label1.InnerHtml = DateTime.Now;
}
</script>
---
-Gonzalo
More information about the Mono-devel-list
mailing list