How can I compile Asp.Net Aspx Pages before loading them with a webserver?

asp.net

Solution

Compile the pages at compile time. See Mike Hadlow's post here:

http://mikehadlow.blogspot.com/2008/05/compiling-aspx-templates-using.html

Problem

It's really annoying that visual studio hides typos in aspx pages (not the code behind). If the compiler would compile them, I would get a compile error.

Original source