异步回发导致完全回发

编程入门 行业动态 更新时间:2024-10-28 07:22:07
本文介绍了异步回发导致完全回发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个asp页面,在其中我使用了几个AJAX控件来对更新面板进行部分回发.在测试中,它工作得非常好,所有回发都在不重新加载页面的情况下完成,从而使整个过程变得流畅.我将其上传到Web服务器进行一些外部测试,所有测试都报告该页面正在重新加载很多.我从Web服务器在网络内尝试了该程序,但仍可以正常工作.但是,当我从家里的网络外部尝试时,实际上,只要将其设置为对这些更新面板进行部分回发,它似乎就会进行全部回发. 我似乎无法找出原因.即使与服务器通信花费的时间增加了,它也不应重新加载页面-最多应该只是停顿片刻.另一个奇怪的事情是,即使我将其设置为我拥有的一两次完整回发,它也不会保持滚动位置.它会重新加载到页面顶部. 我在想,也许这是服务器上设置的,但是我不确定.有人有什么想法吗? 谢谢

I have an asp page within which I''ve used several AJAX controls doing partial postbacks with update panels. In testing it works wonderfully, all of the postbacks are done without reloading the page and it makes the whole process smooth. I uploaded this to the web server for some outside testing and all of the tested reported that the page was reloading a lot. I tried it within the network from the web server and it was still working fine. However, when I tried it from outside the network at home, it does in fact appear to be doing full postbacks whenever it''s set to do partial postbacks for these update panels. I can''t seem to find out why this is happening. Even with the increased time it takes to communicate with the server, it shouldn''t reload the page - it should just, at most, stall for a moment. Another strange thing is that it''s not maintaining the scroll position even though I have it set to do so for the one or two full postbacks I have. It reloads to the top of the page. I''m thinking perhaps this may be something set on the server, but I can''t be sure. Does anyone have any ideas? Thank you

推荐答案

事实证明未加载AJAX,因为我们的网络防火墙正在过滤axd文件,因为该URL也太过许多字符.这是一个艰难的发现,因为可能无法加载AJAX的原因很多. It turns out the AJAX wasn''t being loaded because the axd files were being filtered by the firewall of our network for having a URL that was too many characters. It was a tough find because there are a great deal of reasons why AJAX might not be loaded.

更多推荐

异步回发导致完全回发

本文发布于:2023-11-25 01:09:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1627697.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!