global.asax and classic ASP?
-
20-09-2019 - |
Question
Now please excuse me if this is a stupid question - BUT... In my ASP.NET apps, I have a global.asax file that catches an error and emails me the details. 'Could' I put the global.asax in the root of a classic ASP file and if there was an ASP error it would trigger the global.asax?
Again sorry if this is a dumb question.. If not any ideas on how I could re-create something like this for classic ASP?
Solution
In Classic ASP, you have the global.asa file to achieve similar functionality to what global.asax does in ASP.NET
For example
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Application_OnStart
'Application logic to run on start
End Sub
</SCRIPT>
OTHER TIPS
You should create a new global.asa file for your classic ASP application.
There is global.asa for classic asp.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow