Monday, January 25, 2010

What is Dynamic Web Site Compilation ?

Dynamic Compilation refers to the delayed compilation of Web pages that takes place until the user requests the Web page.

With dynamic compilation, the Web site doesn’t produce a deployable executable assembly as its output when it is built in Visual Studio 2005. Instead, each page is compiled when it is requested. The compiled page has a dependency on the source file’s timestamp. If the source code is changed, the page is recompiled the next time it is requested.

In ASP.NET 2.0, because each Web page produces its own DLL, Visual Studio 2005 allows you to select a programming language for each Web page.

Benefits:

The entire application does not need to be recompiled every time a change is made to a single page or component, which is especially great news to developers of large Web sites. Remember that each page is recompiled as needed based on the timestamp of the source code files.

Pages that contain compile errors do not prevent other pages in the Web site from running. This means that you can test Web sites that contain pages still in development.

No comments: