Re: How Code behind file and single file are process.



Both senarios will use the Temporary ASP.NET Files folder but no .dll
(assembly) causes dynamic compilation.

When you call for an ASP.NET page (.aspx file), the first thing the server
does is notice (by the extension of the file) that it should be processed
using "ASPNET_ISAPI.dll", which you can think of as a server-side processing
engine.

This engine will begin to search for an assembly for this application in the
/bin folder of the application directory. If it can't find a pre-compiled
assembly in the /bin folder, it knows to use dynamic compilation and to look
inside the file for the code.

When a code-behind is used, the engine makes an instance of the class
specified in the .aspx file (which would normally be in the assembly stored
in the /bin folder). If you have a code-behind, but no assembly, then we're
back to the same process I just described, but if there is an assembly, then
you don't need the code-behind at all because its code is compiled into the
assembly.


"archana" <trialproduct2004@xxxxxxxxx> wrote in message
news:1172671622.687785.82550@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,

I am confuse regarding concept of code behind model and single file
model..

I have heard that single file model compiles dynamically.

suppose i have application in which i am having one aspx page and its
equivalent cs file i completed my application and deployed dll and
aspx page.

And in second application, i have only singe file containing html as
well as server side coding.
In this case i only have to add this file to prodeuction server. My
question is how this file is compiled? Means will it use 'temporary
asp.net files' folder to store page details?

any help will be truely appreciated.



.



Relevant Pages

  • Re: Whats the difference/advantages between code behind and code
    ... > In ASP.NET 2.0 you'll get dynamical compilation no matter if you’re ... > putting your code into the ASPX file or in a codebehind file. ... > addition you'll be able to deploy your code in compiled form without ... even if you decide to write your code in line the ASPX file. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Find file names from /image folder at load
    ... I'm not sure why you have the code for the Page_Load event in the aspx file ... I'm trying to get file names from the /image folder. ... Private Sub Page_Load(ByVal sender As System.Object, ... using only the advice of 'use the System.IO.Directory namespace'. ...
    (microsoft.public.dotnet.faqs)
  • Re: Whats the difference/advantages between code behind and code
    ... It explains the new compilation options available in ASP.NET 2.0 ... >> putting your code into the ASPX file or in a codebehind file. ... >> addition you'll be able to deploy your code in compiled form without ... even if you decide to write your code in line the ASPX file. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP .NET 2.0 Visual Studio 2005 - deploying - no DLLs
    ... I usually deploy my ASP .NET application to the server by publishing, ... triggered a compilation of the website, but there are no DLL files in ... folder, like when I publish with Visual Studio. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Shift the webform files into a new folder within a particular project
    ... "vinesh" wrote in message ... >>>> would like to keep the aspx file on root of the project folder and its ... >>>> behind file in separate folder. ... >>>> folder that contains the aspx file. ...
    (microsoft.public.dotnet.languages.vb)

Loading