在.NET中处理IE返回和X的事件 [英] Handle the event of IE back and X in .NET

查看:59
本文介绍了在.NET中处理IE返回和X的事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



任何人都可以重定向或帮助我找到有关如何在IE中捕获事件的解决方案,即当用户单击IE中的后退按钮"或X时,程序(C#.NET)会识别该事件并在执行之前在后台运行功能IE中的后退按钮或X命令.

在此先感谢.

最好的问候

Hi,

Anybody can redirect or help me to find the solution on how to trap the event in IE that when the users click the Back Button or X in IE the program (C# .NET) will recognize it and run a function in the back ground before perfoming the back button or X command in IE.

Thanks in Advance.

Best Regards

推荐答案

此提示/技巧可能会为您提供帮助.

如何在浏览器[X]时检测浏览器是否关闭被点击? [
This Tip/Trick may help you.

How to detect browser close when browser [X] is clicked?[^]




它必须获得浏览器的关闭事件.因为此事件会触发所有操作(例如刷新),因此可以尝试以下任何方式

http://forums.asp.net/p/1493430/3515598.aspx [ ^ ]
,

it had to get closing event of browser . because this event fire every action such as refresh and all any way try this link below

http://forums.asp.net/p/1493430/3515598.aspx[^]


感谢,但这两个示例都不适合我的IE8.
thanks but both example is not working for me IE8.


这篇关于在.NET中处理IE返回和X的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆