在asp.net中阻止来自javascript的浏览器消息 [英] block browser message from javascript in asp.net
本文介绍了在asp.net中阻止来自javascript的浏览器消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用asp.net中的javascript通过代码刷新网页时,浏览器会显示一条消息.
我想阻止该消息,因为必须刷新该页面,但是使用该消息,用户可以阻止刷新.
有人知道答案吗?
请帮助我.
When I''m refreshing the web page through codes using javascript in asp.net there is message from the browser that will display.
I want to block that message because the reshreshing of that page is a must but using that message the user can block the refreshing.
Anybody knows the answer?
Please help me.
推荐答案
检查此内容: ^ ].听起来很接近您要寻找的东西.但是,这仅表示您的体系结构不正确:您需要重新考虑如何向用户呈现数据:听起来好像您正在重新加载整个页面,而这可能不是您应该做或需要做的.您需要做更多研究.
Check this: How to Block F5 Function key in all frames[^]. Sounds close to what you are looking for. However, it just means that your architecture is incorrect: you need to rethink how you are presenting data to the user: it sounds like you are reloading the entire page when that may not be what you should be or need to be doing. You need to do some more research.
代码项目存档 [ ^ ]的一篇文章可能对自动刷新页面.
希望对您有所帮助.
Code Project Archive[^] has an article that may prove useful in the Auto Refreshing of pages.
Hope it helps.
这篇关于在asp.net中阻止来自javascript的浏览器消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文