views:

176

answers:

3

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?

+6  A: 

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>
Russ Cam
+1  A: 

You should create a new global.asa file for your classic ASP application.

Canavar
A: 

There is global.asa for classic asp.

x2