【发布时间】:2010-01-15 22:05:20
【问题描述】:
我在 global.asax.vb 中有这段代码,用于禁用后退按钮。
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
Response.Buffer = True
Response.ExpiresAbsolute = Now().Subtract(New TimeSpan(1, 0, 0, 0))
Response.Expires = -1
Response.CacheControl = "no-cache"
End Sub
此代码在 IE 中完美运行,但拒绝在任何其他浏览器(如 firefox 或 chrome)中运行。我该怎么做才能使它成为多浏览器?
【问题讨论】: