473,403 Members | 2,183 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,403 software developers and data experts.

Compilation of ASP.NET page classes and in-line .NET code

I know that ASP.NET code-behind classes are compiled into IL at project build
time, but what about the .aspx files themselves? I believe that the .aspx
files are compiled into IL at runtime, upon access to the website, correct?

What about in-line .NET code inside <% ... %> blocks in .aspx files, are
they compiled into IL at runtime too?

Finally, if the answer to the first question is yes, does the web server
actually execute the CS or VB.NET compiler at runtime to do this compilation?

thanks
Nov 22 '05 #1
4 1268
Hi,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to know when the .NET code
inside <%%> block is going to be compiled. If there is any
misunderstanding, please feel free to let me know.

As far as I know, your assumption is correct. The web server will user CS
or VB.NET compiler at runtime to compile the code inside the code block.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #2
Hi Kevin thanks much for the quick response. You definitely answered part 2
of my question in terms of what happens to the inline script, so I appreciate
that. The other piece is the .aspx pages themselves, regardless of inline
script. I want to understand the compilation process/behavior for the .aspx
pages and see if it is what I described.

regards,
Matt

"Kevin Yu [MSFT]" wrote:
Hi,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to know when the .NET code
inside <%%> block is going to be compiled. If there is any
misunderstanding, please feel free to let me know.

As far as I know, your assumption is correct. The web server will user CS
or VB.NET compiler at runtime to compile the code inside the code block.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #3
Hi Matt,

When a request is sent to the server, the server checks to see if the page
has been compiled before. If it is the first time, it compiles and put the
complied files to bin folder. Next time, it will get the complied stuff
from bin folder directly. Then it renders aspx pages and repond to the
client.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #4
Hi Matt,

When a request is sent to the server, the server checks to see if the page
has been compiled before. If it is the first time, it compiles and put the
complied files to bin folder. Next time, it will get the complied stuff
from bin folder directly. Then it renders aspx pages and repond to the
client.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Gandu | last post by:
Could a C++ guru help me please? I have a very odd compilation error. The following is the .h file: #ifndef TEST_H #define TEST_H #include <iostream> #include "rando.h" #include "prime.h" ...
12
by: blueblueblue2005 | last post by:
Hi, here is an example I copied from Deitel C++ book. but when I compile it, always get the above compilation error, no matter how I change the include order, please help. here is the files:...
2
by: Jiho Han | last post by:
I was wondering whether it was possible to change the default ASP.NET compilation behavior. I know that there is <compilation> element in the config where you can specify quite a few things...
3
by: Robert | last post by:
I have a number of web projects converted from 1.1 to 2.0 in VS2005. I am methodically seeing the error below: The element 'compilation' has invalid child element 'compilers'. List of...
1
by: Alexander Walker | last post by:
Hello I have recently published a web application using the "Publish Web Site" option of the solution explorer from Visual Studio 2005, I have published the website so that the pages could not...
35
by: mwelsh1118 | last post by:
Why doesn't C# allow incremental compilation like Java? Specifically, in Java I can compile single .java files in isolation. The resulting individual .class files can be grouped into .jar files....
0
by: clintonb | last post by:
I converted a Web Site project to a Web Application project using the instructions found on this page: http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx One thing I did differently...
7
by: dupin | last post by:
Hi, I´m compiling a C++ program with g++ 2.9.5 on SunOS 5.8. I have made a project with NetBeans 5.5.1 and getting from it the make files. The compilation and linking process ocurrs...
3
by: =?Utf-8?B?U3VyZXNo?= | last post by:
Anyway to do the following in aspx HTML? Currently in my codebehind: #if SOMECONDITION using MYBL=MyNamespace.Biz #else using MYBL=MyNamespace.WebServiceBiz #endif
3
by: Sindhu Rani | last post by:
i hav created 3 classes in 3 different files. am gettin an error durin compilation. wat shud i do??? C:\s\source>javac -d ..\classes devtestdrive.java devtestdrive.java:5: cannot resolve symbol...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.