Asp.net页面禁用了 [英] Asp.net page disable back

查看:70
本文介绍了Asp.net页面禁用了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在在asp.net中有一个页面,我希望一旦用户进入此页面。他不应该回去,即前一页,禁用浏览器的后退按钮以及所有移回的可能性。

I am having a page in asp.net now i want once user entered this page . he should not move back i.e previous page anyway, disable back button of browser and such all possiblities for moving back.

推荐答案

看到这个





see this


<head runat="server">

<title>Untitled Page</title>

<script type = "text/javascript" >

function preventBack(){window.history.forward();}

setTimeout("preventBack()", 0);

window.onunload=function(){null};

</script>

</head>

<body>

<form id="form1" runat="server">

<div>

<h1>Hi this is a test page</h1>

<a href ="index.html">Diable Back Button</a>

</div>

</form>

</body>

</html>







禁用浏览器后退按钮 [ ^ ]


如果你搜索代码项目你得到回答....



禁用浏览器的后退按钮 [ ^ ]



问候......:)
if you search code project you get answer....

Disabling browser's back button[^]

regards...:)


试试这个...... :)



如何禁用浏览器的后退按钮 [ ^ ]
try this...:)

How to disable browser's back button[^]


这篇关于Asp.net页面禁用了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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