我怎样才能prevent从导航回到previous页面的用户? [英] How can I prevent the user from navigating back to a previous page?

查看:101
本文介绍了我怎样才能prevent从导航回到previous页面的用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.NET MVC应用程序,有三个观点:厂景视图2 VIEW3 。逻辑方式为用户通过这些定位是:厂景 - > 视图2 - > VIEW3

I have an ASP.NET MVC application, with three views: view1, view2, view3. The logic way for the user to navigate through these is: view1 -> view2 -> view3.

当用户达到 VIEW3 ,那么我必须prevent它们加载视图2 ,即使使用返回按钮,在他们的浏览器。

When the user reaches view3, then I must prevent them from loading view2, even by using the "Back" button in their browser.

什么是执行这一良好的,与浏览器无关的手段?

What is a good, browser-independent means of implementing this?

推荐答案

在你最有应用程序,以应付来自浏览器的后退能力。用户习惯了,他想使用它,他或多或少会恨那些试图欺骗他们去前进和后退时的页面。

In most of the applications you have to cope with the back ability from the browser. The user is used to it and he wants to use it and he more or less will hate pages that try to trick them when going back and forward.

不要试图欺骗你的用户想什么,他想做的事,然后尝试也提供一个不完全打破页。

Don't try to fool you user think about what he wanted to do and then try do deliver a not completely broken page.

这篇关于我怎样才能prevent从导航回到previous页面的用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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