tryandcatch.net

Blogs from tryandcatch.net
Welcome to tryandcatch.net Sign in | Join | Help
in Search

Ezequiel EspĂ­ndola's Blog

ASP.NET 2.0 Compilation Model

I'm still trying to discover all about the new ASP.NET 2.0 project model. The fact that you don't need IIS, not even a Web Project makes development so much faster and easier. There is no web project actually, any folder can be a Web Site. This doesn't mean you should grab your whole application and throw it inside the App_Code folder. Application layers should still be on their own class library projects and assemblies as necessary.

I've found some interesting posts on the matter from Scott Allen where he explains that contrary to be worse than in ASP.NET 1.x, the new compilation model is actually better. This relates to my post about the ASP.NET 2.0 simplified code-behind model and my question about why do you need an Inherits attribute on the @Page declaration. As a matter of fact, you probably don't need it, it should be named something else, like PartialClassName. As Scott explains, the compilation model now takes both parts, aspx page and code-behind and merge them into one assembly under the same Class name. There is no inheritance going on there at least as I can see.

In another post he mades a point related to the ASP.NET Web Site Precompilation about how in some cases you would need to specify a @Reference directive to make things work. Take note.

So far, I'm enjoying this stuff.

Published Friday, December 09, 2005 5:06 PM by eespindola
Filed Under:
Anonymous comments are disabled

This Blog

Post Calendar

<December 2005>
SuMoTuWeThFrSa
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

Syndication

Powered by Community Server, by Telligent Systems