Re: Explanation of dynamic ASPX compilation and recompilation – level 300

To expand on my previous post, here is a reply I received from Dino Esposito about what goes on behind the scenes on a page request:



Hi Jeffrey


1) The runtime figures out the name of the class to serve that page request.  If the class can’t be found in any of the loaded assemblies, the source is compiled. If the class is found (means the page’s been compiled already), it checks the timestamp of the class against a value stored in an internal store. If they differ, it assumes the page has been compiled. This happens with ASPX files


2) If you change the CS/VB nothing happens and an explicit compile step is required


3) Changes in inline code trigger the recompile


–Dino