balaweblog
balaweblog

Reputation: 15470

Session level exception

I am having an page. I need to capture the exception which is thrown due to time out..

Is there any exception message like System.Applicationexception

Upvotes: 1

Views: 87

Answers (1)

maxnk
maxnk

Reputation: 5745

You can use Application_Error event in Global.asax.cs:

    protected void Application_Error(object sender, EventArgs e)
    {
                var exception = Server.GetLastError();
                LogException(exception);
    }

And after catching log this exception or even mail it :)

Upvotes: 2

Related Questions