470,631 Members | 1,556 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,631 developers. It's quick & easy.

How Code behind file and single file are process.

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.

Feb 28 '07 #1
1 1497
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" <tr**************@yahoo.comwrote in message
news:11*********************@j27g2000cwj.googlegro ups.com...
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.

Feb 28 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Ursula Peter-Czichi | last post: by
171 posts views Thread by tshad | last post: by
17 posts views Thread by tshad | last post: by
4 posts views Thread by Aussie Rules | last post: by
3 posts views Thread by Patrice | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.