如何在asp.net中使用javascript避免页面刷新。 [英] How to avoid page refresh using javascript in asp.net.

查看:75
本文介绍了如何在asp.net中使用javascript避免页面刷新。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望没有人可以刷新应用程序中的页面,即使选择了URL并按下回车键或f5。我已经阻止了f5并输入了按钮,但如果我在浏览器中选择了网址并按回车键,那么页面就会刷新。请帮帮我。

I want no one can refresh the page in the application even by selecting the url and after pressing enter button or f5. I have blocked f5 and enter button, but if I am selecting the url in the browser and press enter then the page got refreshed. Please help me out in this.

推荐答案

您可以尝试删除地址栏,以便没有人可以选择该URL。



查看这些链接 -



我们如何禁用浏览器的地址栏,以便没有人可以从地址栏中选择网址 [ ^ ]
You may try to remove the address bar so that no one can select the the URL.

check these link -

How can we disable the address bar of browser so that no one can select the url from the address bar[^]


这篇关于如何在asp.net中使用javascript避免页面刷新。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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