Getting the errors for code in unopened .aspx pages

Posted by Glennular on Stack Overflow See other posts from Stack Overflow or by Glennular
Published on 2010-05-12T16:00:11Z Indexed on 2010/05/12 16:04 UTC
Read the original article Hit count: 205

Is there a way to check for errors in unopened *.ASPX pages. For example, if you change the name of a function Visual Studio will catch the error on the page and list it in the "Error List" only if the page is opened and being validated?

I guess the question could be is there a validation option opposed to the compile option to check for errors?

(Yes, i know code should go into the pre-compiled code-behind pages.)

How do i find out about the following without running the page through the webserver or opening the page to be validated in VS?

<script runat="server">
     Public Sub MyFunciton() 
         Undefined_FUNCTION()
     End Sub
 </script>

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about compiler-errors