[Mono-list] Does mono support Codebehind in ASP .net?

Luke Stephenson lstephenson@rogers.com
Sat, 7 Feb 2004 12:38:06 -0500

I have not tried it as of yet... as I cannot get mod_mono to bring anything
besides 404 not found, 

This is probably a silly question, but did you "compile" your class?

Luke Stephenson
Computer Systems Engineering
-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com] On Behalf Of Golo Haas
Sent: Saturday, February 07, 2004 12:34 PM
To: mono-list@lists.ximian.com
Subject: [Mono-list] Does mono support Codebehind in ASP .net?

Hi there,

at the moment, I am trying to do my first steps with ASP .net and 
created a little "Hello World"-example, which functioned perfectly 
(running on mono 0.30 and XSP 0.9) :-).

Now, I've tried to extract the C# code to an extra file and do 
everything using ASP .net's Codebehind feature, but XSP always brings me 
an error message, that the type MyWebApp.Index could not be resolved. As 
I don't see any error within the .aspx oder the .aspx.cs file and I 
don't have the chance to try it on a VS .net, my question is, whether 
mono supports Codebehind at all?

The files are:


<%@ Page Language="C#" AutoEventWireup="false" 
Codebehind="index.aspx.cs" Inherits="MyWebApp.Index" %>


     <span id="Message" runat="server" />


using System;
using System.Web.UI;
using System.Web.UI.HtmlControls;

namespace MyWebApp
   public class Index : Page
     private HtmlGenericControl Message;

     private void PageLoad()
       Message.InnerHTML = "ASP .net mit Codebehind";

     override protected void OnInit(EventArgs eventArgs)
       this.Load += new System.EventHandler(PageLoad);

Thanks in advance,

Microsoft Community Leader
Mono-list maillist  -  Mono-list@lists.ximian.com