2

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?

Russ Cam
  • 124,184
  • 33
  • 204
  • 266
YodasMyDad
  • 9,248
  • 24
  • 76
  • 121

3 Answers3

10

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
  • 124,184
  • 33
  • 204
  • 266
1

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

Canavar
  • 47,715
  • 17
  • 91
  • 122
0

There is global.asa for classic asp.

x2.
  • 9,554
  • 6
  • 41
  • 62