Are ASP.NET Pages compiled>

M

Mark Fisher

Hi all.

I have read in several places that ASP.NET pages are compiled the first time
they are run, and thefore run quicker the next time they are accessed. Is
this true? If so, what are they compliled to, ie, where is the compiled
file stored. I am playing around with some pages using Web Matrix, and all
I can see are the orginal .aspx files, no sign of any complied version.

Thanks
 
K

Kumar Reddi

Hi Mark,
Yes asp.net pages are compiled. The application gets compiled into a single
dll, which is usually placed in the applcations bin folder. But the files
asp.net uses to service the requests are placed in a different folder named
Temporary ASP.NET Files, which is usually located under

%WINNT%\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files

Asp.net uses the files located under sub folders located under this folder.
If there are any changes to the source, then asp.net compiles the source and
updates these files, so the source directory is never touched while
servicing the requests. So, with this approach you can simply replace any
dll in the bin folder without restarting the application or iis, which used
to be a big problem in the classic asp

Let me know if you have any more questions

Kumar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top