I used to write an article on my blog describing the major changes in page compilation models in ASP. NET 2.0 beta2 compared with beta1. Today, I found two good blogs on the Internet (here & here). I described this change in more detail and the operating principles.
In my personal preferences, I prefer the code-Beside method of beta1, because the mechanism is clear, understandable, and elegant. However, the Code-Beside method has an obvious defect. It is difficult for developers to inherit pages from a defined page base class, while in ASP. Beside. NET 1.1, this is very simple (you only need to directly change the parent class of the code-behind file ).
The improvement of beta2 makes the implementation method more complicated, but the advantage is that developers can enjoy the advantages of customized page base class, and also eliminate. NET 1.1, the code-behind file has to add a large number of defects declared by the protected control.