异步回发导致完全回发 [英] Asynchronous postbacks causing full postbacks

查看:84
本文介绍了异步回发导致完全回发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp.net页面,在其中我使用了几个AJAX控件来对更新面板进行部分回发.在测试中,它工作得非常好,所有回发都在不重新加载页面的情况下完成,从而使整个过程变得流畅.我将其上传到Web服务器进行一些外部测试,所有测试都报告该页面正在重新加载很多.我从Web服务器在网络内尝试了该程序,但仍可以正常工作.但是,当我从家里的网络外部尝试时,实际上,只要将其设置为对这些更新面板进行部分回发,它似乎就会进行全部回发.

我似乎无法找出原因.即使与服务器通信花费的时间增加了,它也不应重新加载页面-最多应该只是停顿片刻.另一个奇怪的事情是,即使我将其设置为我拥有的一两次完整回发,它也不会保持滚动位置.它会重新加载到页面顶部.

我在想,也许这是服务器上设置的,但是我不确定.有人有什么想法吗?

谢谢

I have an asp.net 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.


这篇关于异步回发导致完全回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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