浏览器后退按钮 [英] Browser Back Button

查看:149
本文介绍了浏览器后退按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

人们如何处理数据库驱动的网络应用程序上的浏览器返回按钮

使用ASP.NET构建?


我们将状态保持在Session和后退按钮让我们头疼很多

疼痛!


这只是我们应该更加注重使用方式的情况

会话状态还是他们的技巧和/或提示?


TIA

George

How are people handling the browser back button on database driven web apps
built using ASP.NET??

We keep state in Session and the back button is causing us lots of head
aches!

Is this just a situation where we should look harder at the way we use
Session State or are their tricks and/or tips on this?

TIA
George

推荐答案

我知道只有一个简单的解决方案,并且在每种情况下都不实用



如果你打开一个新的浏览器窗口它将没有历史记录,因此后面的

按钮将被禁用。


-

我希望这有帮助,

Steve C. Orr,MCSD,MVP
http ://Steve.Orr.net

" DotNetGruven" < MS ******** @ javagruven.com>在消息中写道

news:uE ************** @ tk2msftngp13.phx.gbl ...
There is only one easy solution that I know of, and it''s not practical in
every situation:
If you open a new browser window it will have no history, thus the back
button will be disabled.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"DotNetGruven" <ms********@javagruven.com> wrote in message
news:uE**************@tk2msftngp13.phx.gbl...
人们如何处理数据库驱动的web上的浏览器返回按钮使用ASP.NET构建的应用程序?

我们在Session中保持状态,后退按钮导致我们很多头疼痛! />
这只是我们应该更加注重使用会话状态的方式还是他们的技巧和/或技巧?

TIA George
How are people handling the browser back button on database driven web
apps built using ASP.NET??

We keep state in Session and the back button is causing us lots of head
aches!

Is this just a situation where we should look harder at the way we use
Session State or are their tricks and/or tips on this?

TIA
George



后退按钮的功能不可控制。它是

客户端的一部分。您可以做的最好的事情是使您的页面内容失效,但是您可以执行任何操作来禁用后退按钮。

DotNetGruven < MS ******** @ javagruven.com>在消息中写道

news:uE ************** @ tk2msftngp13.phx.gbl ...
The functionality of the Back button is not controllable. It is part of the
client. The best you can do is expire your page content, but there is
nothing you can do to disable the back button.
"DotNetGruven" <ms********@javagruven.com> wrote in message
news:uE**************@tk2msftngp13.phx.gbl...
人们如何处理数据库驱动的web上的浏览器返回按钮使用ASP.NET构建的应用程序?

我们在Session中保持状态,后退按钮导致我们很多头疼痛! />
这只是我们应该更加注重使用会话状态的方式还是他们的技巧和/或技巧?

TIA George
How are people handling the browser back button on database driven web
apps built using ASP.NET??

We keep state in Session and the back button is causing us lots of head
aches!

Is this just a situation where we should look harder at the way we use
Session State or are their tricks and/or tips on this?

TIA
George



我会仔细研究设计。头疼是什么?如果你确实需要

控制在哪里返回拿走它们,你可以看一下js函数

location.replace()。或者,您可以设置一个会话变量,这样您就可以知道第二次执行提交时不是
。很难知道没有更多的细节。


比尔


" DotNetGruven"写道:
I''d look hard at the design. What are the headaches? If you do need to
control where "back" takes them, you can look at the js function
location.replace(). Or, you might set a session variable so you can know not
to execute a submit the second time around. Hard to know without more detail.

Bill

"DotNetGruven" wrote:
人们如何处理使用ASP.NET构建的数据库驱动的Web应用程序上的浏览器后退按钮?

我们保持状态会话和后退按钮让我们感到非常痛苦!

这只是我们应该更加注重使用会话状态的方式或者是他们的伎俩和/或有关这方面的提示?

TIA
George
How are people handling the browser back button on database driven web apps
built using ASP.NET??

We keep state in Session and the back button is causing us lots of head
aches!

Is this just a situation where we should look harder at the way we use
Session State or are their tricks and/or tips on this?

TIA
George



这篇关于浏览器后退按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆