Search code examples
c#.netasp.netascx

How does ASP.NET parse an ASPX file into executable code?


How does ASP.NET parse an .aspx, .ascx or .master file into executable code?

I have a brain and a copy of .NET Reflector, so if someone could tell me where to look, that is sufficient.


Solution

  • You're looking for the TemplateParser and TemplateBuilder classes and their derivatives.

    You can download the reference source for the .Net framework, which includes comments and will be more readable than Reflector.