2 using System.Collections;
3 using System.ComponentModel;
5 using System.Web.SessionState;
9 public partial class Global : System.Web.HttpApplication
11 protected virtual void Application_Error (Object sender, EventArgs e)
13 HttpResponse response = Response;
15 if (response != null) {
16 string begin = (string)AppDomain.CurrentDomain.GetData ("BEGIN_CODE_MARKER");
17 string end = (string)AppDomain.CurrentDomain.GetData ("END_CODE_MARKER");
18 response.Write (begin + "<strong>Application error handled</strong>" + end);