[Mono-list] ASP.NET

Gonzalo Paniagua Javier gonzalo at ximian.com
Tue Jan 24 17:07:52 EST 2006

On Tue, 2006-01-24 at 19:13 +0000, peter wrote:
> Chris Aitken wrote:
> >Codebehind is a VS thing only. Change it to Src and it should all work.
> >  
> >
> Great stuff, Chris, it works just like you said.
> The other thing I noticed is that I can leave the
> Codebehind="..."
> in just so long as I add
> Src="..."
> to the declaration.  I guess that applies in VS as well (I shall try it 
> in a couple of minutes), so to write X-platform code I need to use both 
> attributes.

The "problem" with Src is that the file will need to be compiled on
every xsp/mod-mono-server restart. If you compile it into a dll and put
that dll in the 'bin' directory, there will be no need to compile that
file again. So, Src is fine when you're actively developing and the dll
is better for deploying.


More information about the Mono-list mailing list