Page reference in IExceptionHandler

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi misters,

I have an application web (asp.net) and I want define custom Handler for
exceptionhandling (Enterprise Library)

My custom class..
[ConfigurationElementType(typeof(CustomHandlerData))]
public class GestorExcepcionesIU : IExceptionHandler


I want to do like this:

Exception IExceptionHandler.HandleException(Exception exception, Guid
handlingInstanceId)
{
RegisterStartupScript(@@@PAGE@@@, "jsExcepcionIU",
"alert('Error IU: " + exception.Message.Replace("'", " ") + "');");
return exception;
}

How I get reference of Page in the custom handler ?

Any help will be appreciated, and I'll be very grateful. Thanks in advance.
Greetings, regards.
 
Back
Top