Getting the errors for code in unopened .aspx pages
- by Glennular
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>