Re: ASP.NET Web Application And Compilation [Question]

From: Tiraman (tiraman_at_netvision.net.il)
Date: 04/28/04


Date: Wed, 28 Apr 2004 21:32:48 +0200

10x :-)

"Steven Cheng[MSFT]" <v-schang@online.microsoft.com> wrote in message
news:dFgRSjMLEHA.1460@cpmsftngxa10.phx.gbl...
> Hi Tiraman,
>
> As for the complie for the asp.net web project(web application), here are
> some of my understanding:
>
> In fact, when we said that we need to compile a web application, that
means
> we'd compile the web project before deploy it to the server,yes? This
> compile operation will build all the webform pages' codebehind page
classes
> or any other utility classes into the web application's main assembly(dll
> file) which will be deployed to the web application's sub "bin" folder.
> Then, when deploying the web project, we needn't copy the code source
> files(.cs or .vb) to the deployment server) since all the classes has been
> build into the main assembly(in "bin" folder).
>
> At runtime, when a certain web page is requested, there occurs another
> compilation------runtime compiling-------- this will generate the actual
> class of the webpage(not the codebehind class in the assembly), the actual
> class will be generated from the aspx source file and is derived from the
> codebehind class contained in the assembly. And the runtime compiled page
> classes is located in the ASP.NET's temporary folder. This runtime
> compiliation can be set in the web.config via the <compilation> Element,
>
> #<compilation> Element
>
http://msdn.microsoft.com/library/en-us/cpgenref/html/gngrfcompilationsectio
> n.asp?frame=true
>
> Then when the actual page class is generated, the ASP.NET runtiem will use
> its instance to process the coming request for the certain page. For
> detailed description, please reference the following links in MSDN:
>
> #Creating and Managing Web Forms Pages
>
http://msdn.microsoft.com/library/en-us/vbcon/html/vboriCreatingEditingWebFo
> rms.asp?frame=true
>
> #Web Forms Code Model
>
http://msdn.microsoft.com/library/en-us/vbcon/html/vbconwebformscodemodel.as
> p?frame=true
>
> Hope helps. Thanks.
>
> Regards,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
>
>
>



Relevant Pages

  • Re: Accessing UserControls in ASPX code-behind pages
    ... the codebehind cs file, the precompiled classes are all ... it is dynamically compiled at runtime when the certain UserControl ... class which is precompiled into assembly at compile time). ... UserControl doesn't have a codebehind class, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Compiling for WinCE C++ code developed with a non-MS IDE
    ... I've recently had a request about an application written in C++, ... A GUI was needed, so ... turns out that this application needs to run under Windows Mobile/CE (I was ... Do I compile on the smartphone or will my laptop do? ...
    (microsoft.public.windowsce.embedded)
  • Re: Regression in 2.6.28-rc and 2.6.27-stable - hibernate related
    ... (CCing to linux-acpi at Rui's request) ... On Thursday, 27 of November 2008, Fabio Comolli wrote: ... applied after 2.6.27.4 and retest. ...
    (Linux-Kernel)
  • Re: .ASPX -> .CS generation
    ... It does create a C# source file! ... It even showed me the command line that was used to compile it. ... No doubt, it does many things when requesting an ASPX file, but this step is ... > When you make a request to an ASPX file, it is not converted into C# file. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: c++ web scripting
    ... >> to start a process for each request. ... >> Tommi Mäkitalo ... > approach toward web applications is to compile the code on request, ... you could choose between higher-level languages and C++ ...
    (comp.lang.cpp)