Asp.net页面关闭 [英] Asp.net page close
问题描述
如何关闭当前正在运行的页面.
我把this.dispose();代码
bt不起作用
请帮助我
Kishore R
Gis Solutions
how can i close a currently running page..
i put this.dispose(); code
bt its not working
kindly help me
Kishore R
Gis Solutions
推荐答案
我如何关闭当前正在运行的页面
how can i close a currently running page
客户端需要触发它.
例如,如果客户单击按钮,请使用以下JavaScript关闭窗口:
The client needs to trigger it.
For ex, if the client clicks a button, use following JavaScript to close the window:
window.close();
这将确认用户是否要关闭窗口.
它不适用于FireFox.
我认为您可以编写一个JavaScript函数,该函数将在定义的时间间隔内执行相同的操作.但是我还没有尝试过.
This would confirm user if he wants to close the window.
It doesn''t work with FireFox.
I think you can write a JavaScript function, which would do the same in defined time interval. But i haven''t tried it.
这篇关于Asp.net页面关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!