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. 回答1: 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. 回答2: It uses the asp.net syntax parser (system.web.dll) compilation namespace, and codedom