Compiling on the fly or on a non Win platform

  • Thread starter Thread starter Ryan O'Neill
  • Start date Start date
R

Ryan O'Neill

Hi All,

I am trying to deploy .aspx (asp.net) web pages to a web server
without having to compile them beforehand. Using the CodeBehind
approach this does not seem possible as the CodeBehind (.vb file in
this case) must be compiled into a class which is then inherited from
the .aspx. The reason for this is simple, the designers use Mac OSX
and we have set up a number of templates to make it easy for them to
create .net sites with functionality.

If we are unable to publish the CodeBehind pages and have them
compiled on the server when required, then it looks like we will have
to embed all code into the one page (.aspx), which I am not keen on.

An alternative would be to create the class files and bin directory
contents on the Mac and upload them, but that does not seem possible.
Mono is not yet complete as far as I know and it does not support OSX
anyway.

Any hints? I appreciate that a job could be scheduled on the server to
compile the pages as required, but this also is abit shoddy as we will
not be able to catch compile errors.

Thanks in advance

Ryan
 
I didn't think it was possible to deploy an ASP.NET app
without compiling it since all of the code behind
the .aspx forms is compiled into an application dll.
 
I am trying to deploy .aspx (asp.net) web pages to a web server
without having to compile them beforehand. Using the CodeBehind

Look at the Page directive. There is an attribute called src that, I
believe, will cause the .vb (.cs, etc) to be compiled when the page is
first loaded (if not already current). But I don't think it gets compiled
every time.

Try asking the aspnet group for more information.
 
Thanks everybody,

SRC kind of works, but you also have to add an Inherits clause that
identifies the class in the code behind, without which the events do
not fire. It now works just as required, any new uploads are compiled
on the fly into the DLL and the existing ones are used as DLLs as
well.

Ryan
 
Back
Top