Q1. What is Dynamic Compilation?
Compilation may be enabled or disabled at page level by setting the CompilationMode attribute in the Page Directive of the page.
Q2. How to set Dynamic Compilation for an entire website?
Q3. Why do we sometimes need to disable compilation?
Q4. What is the FindControl method?
Q5. What is a partial class? Whats the advantage of using it?
Advantage, for example, Any change in Code-Behind page gets reflected in the Presentation Page(inline code) and vice versa, because of the partial class mechanism. Compare this with the older ASP.NET 1.1, whenever a change was made to Code Behind, change got reflected in Presentation page but the reverse threw an error. So for any change in the presentation page, like addition of a new control, we need to specifically add a reference of that control in the Code-Behind page. The concept of partial classes in ASP.NET 2 eliminates this problem.