Question: I have finally finished my web site. I published it, and I was surprised at the results. Although the App\_Code compiled into a single DLL file, every page's code behind compiled into its own DLL file. How do I make it so that it is one DLL file?

Also, is it possible to compile everything (SubSonic, AJAX, etc.) into that same single DLL file?

Answer: 
You might prefer to use the web application project style for that. 

You can use [ILMerge](http://www.microsoft.com/downloads/details.aspx?FamilyID=22914587-B4AD-4EAE-87CF-B14AE6A939B0&displaylang=en) to merge assemblies into one.
To accomplish this you will have to covert your project into a Web Application Project (Supported in Visual Studio 2005 SP1 and Visual Studio 2008).

The process of converting is not that hard, but you will need to move everything out of the app\_code folder, as WAP (Web Application Projects) projects do not have code inside app\_code.

Once you do this, everything inside your project is compiled into a single DLL file, any external assemblies are still contained in their own DLL files though, but there are options around that as well.