asp.net.ph

HttpApplication.Error Event

System.Web Namespace   HttpApplication Class


Occurs when an unhandled exception is thrown.

[ VB ]
Public Event Error As EventHandler

[ C# ]
public event EventHandler Error;

[ C++ ]
public: __event EventHandler* Error;

In [ JScript ], you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an argument of type EventArgs containing data related to this event.

Remarks

The exception that raises the Error event can be accessed by a call to GetLastError method. If your application generates custom error output, suppress the default error message generated by ASP.NET by a call to the ClearError method.

See Also

HttpApplication Members Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note