I've got a page that calls a WebService method (in my application) from the window.onbeforeunload event. It's working fine in IE7, but when I run it in FireFox (I'm using 3, haven't tried older versions), I always get a javascript alert saying "The server method 'Test' failed with the following error:". Calling it from other places seems to work fine. Any explanation for this behavior or suggestions of how to debug further would be greatly appreciated. Here's a simple example that illustrates:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html< ...
Go to the complete details ...