Here is an article on how to precompile your website - code and pages both.

http://msdn.microsoft.com/en-us/library/ms227976(VS.80).aspx