Is it possible to have Visual Studio check .aspx pages for errors when compiling? For example, if I have a Web Form with this control:
<asp:Button ID="CancelButton" runat="server" OnClick="CancelButton_Click" Text="Cancel" />
If CancelButton_Click does not exist in the code behind, have VS throw an error when compiling the application. Currently it still compiles, but throws an error at run time. Is this possible? I realize compile time would greatly increase, but it would be helpful catching problems before run time. I thought I read about the ability to do this with Asp.Net MVC views, but cannot find the link.