本文介绍了当浏览器关闭时,我想调用webservice的web方法。怎么做。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 您好, 有人可以告诉我如何捕获浏览器关闭事件。当 被解雇时我想调用网络方法。 提前致谢。 问候, Gouri。 Hello, Can anybody please tell me how to trap the browser close event. whenthat is fired I want to call the web method. Thanks in advance. Regards,Gouri.推荐答案 这是这个新闻组中一个相当常见的问题。 不幸的是,没有可靠的方法来做到这一点,因为网络服务器和客户端浏览器之间没有 永久连接。 网络服务器不知道客户端浏览器会发生什么,除非它/ b $ b收到另一个HttpRequest。 毫无疑问你将收到其他回复建议可能的解决方案与 卸载和/或beforeunload事件 - 没有一个可靠地工作... - Mark Rae ASP.NET MVP http:// www.markrae.net This is a fairly common question in this newsgroup. Unfortunately, there is no reliable way to do this, because there is nopermanent connection between the webserver and the client browser. Thewebserver has no idea what happens on the client browser until / unless itreceives another HttpRequest. No doubt you''ll receive other replies suggesting possible solutions with theunload and/or beforeunload events - none of those works reliably...--Mark RaeASP.NET MVP http://www.markrae.net 这是这个新闻组中一个相当常见的问题。 不幸的是,没有可靠的方法来做到这一点,因为网络服务器和客户端浏览器之间没有 永久连接。 网络服务器不知道客户端浏览器会发生什么,除非它/ b $ b收到另一个HttpRequest。 毫无疑问你将收到其他回复建议可能的解决方案与 卸载和/或beforeunload事件 - 这些都没有可靠的工作... - Mark Rae ASP.NET MVP http://www.markrae.net This is a fairly common question in this newsgroup.Unfortunately, there is no reliable way to do this, because there is nopermanent connection between the webserver and the client browser. Thewebserver has no idea what happens on the client browser until / unless itreceives another HttpRequest.No doubt you''ll receive other replies suggesting possible solutions with theunload and/or beforeunload events - none of those works reliably...--Mark RaeASP.NET MVP http://www.markrae.net 这是这个新闻组中一个相当常见的问题。 不幸的是,有没有可靠的方法来做到这一点,因为网络服务器和客户端浏览器之间没有永久的连接。网站服务器不知道客户端浏览器会发生什么,直到/ 除非收到另一个HttpRequest。 毫无疑问,您将收到其他回复,建议可能的解决方案卸载和/或之前的事件 - 这些都不可靠...... - Mark Rae ASP.NET MVP http://www.markrae.net 这篇关于当浏览器关闭时,我想调用webservice的web方法。怎么做。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
11-03 02:51