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

Luke Stephenson lstephenson@rogers.com
Sat, 7 Feb 2004 13:13:34 -0500


As I mentioned before I have not been able to get it to work, so I cannot
test it for you

1st, you need to inherit from System.Web.UI.Page

And you need to compile to a library target, 

With the .net c# compiler in windows, the commandline I sometimes use to
compile codebehind looks something like:

csc /t:library /out:bin\WebForm2.dll /r:System.dll /r:System.Web.dll
WebForm1.aspx.cs

here is code for a page that works:
http://lscs.servehttp.com/palindrome/code.txt


Luke Stephenson
LSCS
Computer Systems Engineering
lstephenson@rogers.com	  
 	 
-----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 1:04 PM
To: Luke Stephenson; mono-list@lists.ximian.com
Subject: Re: [Mono-list] Does mono support Codebehind in ASP .net?

So, finally I found the error ... PageLoad has to have - of course - the 
right signature ... "object sender, EventArgs e" was missing ... so, the 
very last question for me ...

When I try to compile the file, I get the message, that there is no 
entry point defined ... of course not, it's not an exe. How do I tell 
the compiler to compile for ASP .net?

Thanks in advance,


Golo
-- 
Microsoft Community Leader
http://www.golohaas.de
_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list