473,395 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 1599
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ursula Peter-Czichi | last post by:
Found a different way to do it - onto the next problem... >-----Original Message----- >Software: WIN XP Professional, IIS 5.1, Visual Studio.Net >2002 - >I have figured out why my .aspx files...
37
by: Alan Silver | last post by:
Hello, Newbie here, so please forgive what is probably a basic question ... I see a lot of discussion about "code behind", which if I have understood correctly, means that the script code goes...
171
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
17
by: tshad | last post by:
Many (if not most) have said that code-behind is best if working in teams - which does seem logical. How do you deal with the flow of the work? I have someone who is good at designing, but...
4
by: Aussie Rules | last post by:
Hi, I have the Windows media object placed on a web page. Since its not a .net component (its a com object) I have placed the code in the html source of the page. The problem I am having is...
2
by: JB | last post by:
I have existing aspx pages that I'm editing in VS 2005 that I add a server control to - like a label. I include the runat="server" and it doesn't seem to create the reference in the code behind for...
3
by: Patrice | last post by:
Hi all, I'm currently upgrading a 1.1 application. We were using a command file to invoke the command line compiler to that we have the code behind compiled into multiple DLLs (to be able to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.