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...pilationsectio
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...ngEditingWebFo
rms.asp?frame=true
#Web Forms Code Model
http://msdn.microsoft.com/library/en...mscodemodel.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