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的回复