Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 在代码隐藏中使用VB在google chrome中如何关闭网页_Asp.net - Fatal编程技术网

Asp.net 在代码隐藏中使用VB在google chrome中如何关闭网页

Asp.net 在代码隐藏中使用VB在google chrome中如何关闭网页,asp.net,Asp.net,嗨,在我的网站上有一个关闭按钮,点击它我想清理缓存并关闭网站 Public Sub CloseIM_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles button Try Session.Item("UserName") = Nothing Session.RemoveAll() R

嗨,在我的网站上有一个关闭按钮,点击它我想清理缓存并关闭网站

  Public Sub CloseIM_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles button


        Try
            Session.Item("UserName") = Nothing
            Session.RemoveAll()

            Response.ExpiresAbsolute = Now().Subtract(New TimeSpan(1, 0, 0, 0))
            Response.Expires = 0
            Response.CacheControl = "no-cache"
            Response.Write("<script language='javascript'> { self.close() }</script>")
'' i used above line to close but it is not working in google chrome working properly in IE all versions

End sub
我使用Response.Write{self.close}来关闭,但它在Google chrome中不起作用
提前感谢thaknks可能的副本@EdSF的回复