为什么 ?加载新标签页时自动刷新/重新加载标签页 [英] Why ? Automatic refresh/reload of a tab when a new tab is loaded

查看:224
本文介绍了为什么 ?加载新标签页时自动刷新/重新加载标签页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经在ASP.NET和C#中实现了一个Web项目,并将它也部署在服务器上.
问题是当页面加载后,我们尝试打开一个新选项卡时,旧选项卡会刷新.这并不总是发生,而是间歇地发生.

我检查了我的代码,并且meta标记/超时/自动刷新设置在哪里.

我还更改了浏览器设置以禁用metarefresh.


请帮助!!

Hi ,

I have implemented a webproject in ASP.NET and C# and deployed it on the server as well.
The problem is when the page is loaded and we try to open a new tab , the old tab gets refreshed . This does not happen always but happens intermittently.

I cheked my code and no-where is the meta tag / time out / auto refresh set.

I also changed the browser settings to disable the metarefresh .


PLEASE HELP!!

推荐答案

这还不清楚.是否显示了新标签页?新标签页是新页面吗?是否应该发生回发?可以 ?通常,在没有这种要求的情况下,此类请求会执行完整的回发.我们无法在看不到它的情况下修复您的代码.除非您在浏览器中表示标签,否则ASP.NET中没有标签.在这种情况下,在打开新选项卡方面不会采取任何措施来改变现有选项卡的行为,这可能是确认偏差的一个示例,您认为一件事导致另一件事,而当它们关联时,您就假设因果关系.

无法根据您发布的内容说更多.
This is very unclear. Is the new tab being shown at all ? Is the new tab a new page ? Should a postback occur ? Does it ? Usually these sort of requests, the code is doing a full postback, when it''s not intended. We can''t fix your code without seeing it. There are no tabs in ASP.NET, unless you mean tabs in the browser. In this case, there is no action in terms of opening a new tab that will change how an existing tab acts, this could be an example of the confirmation bias, where you think one thing causes another and when they correlate, you assume causality.

Impossible to say more based on what you posted.


这篇关于为什么 ?加载新标签页时自动刷新/重新加载标签页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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