0

I have a scenario where I need to call a webmethod on pageunload event of javascript.

  1. When I open multiple instances of same page in multiple browser tabs(eg greater than 10 tabs).
  2. Close the browser at once.

Pageunload for multiple instances of page is called and my error recording tool records the error "Http Error 500: Internal Server Error".

But, nothing is written in log files and I do not get any error message even if the application is in debug mode.

I need to troubleshoot the issue aand prevent it from occurring. Anyone has any idea?

4

1 回答 1

0

使用此方法并尝试制作一个日志系统来识别错误。

 protected override void OnUnload(EventArgs e)
{
    base.OnUnload(e);
// your code here


}
于 2013-03-21T11:45:12.807 回答