浏览器关闭按钮 [英] browser close button
本文介绍了浏览器关闭按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个代码背后的功能如下
Private Sub Get()
Dim test1 As String
Dim test As String
如果测试IsNot Nothing然后
结束如果
现在我想在用户关闭时调用此get()函数网页表单,我的意思是用户在浏览器上点击(X)。
请帮助我。
解决方案
< blockquote>你应该遵循一个线程
链接 [ ^ ]
您可以使用这些链接。
关闭浏览器实际上应该清除会话变量的ASP.net会话ID [ ^ ]
使用MS AJAX从Javascript调用静态页面方法 [ ^ ]
从javascript调用代码隐藏功能 [ ^ ]
问候..:)
Hi,
I have one code behind function like below
Private Sub Get()
Dim test1 As String
Dim test As String
If test IsNot Nothing Then
End If
now i want to call this get() function when user close the web form, I mean when user click (X) on browser.
please help me .
解决方案
You should follow one thread
link[^]
You can make use of these links.
Closing the browser should actually clear the session variables an ASP.net session id[^]
Calling a static "page method" from Javascript using MS AJAX[^]
calling code behind function from javascript[^]
Regards..:)
这篇关于浏览器关闭按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文