如何限制上的UpdatePanel后的值是多少? [英] How to limit the number of post values on UpdatePanel?

查看:128
本文介绍了如何限制上的UpdatePanel后的值是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经注意到了的UpdatePanel后各个领域包括形式在每次触发。在

I have notice that the UpdatePanel post every field included on the form on every trigger.

但是,在我的大部分情况下,我用2-3的UpdatePanel在同一页,而且每一个都是独立的。

But in most of my cases I use 2-3 UpdatePanels at the same page, and each one is independent.

当我点击更新的一个面板,然后我的网页获得页面的所有输入数据(好吧,这是合乎逻辑的),但我只赢了阅读本的UpdatePanel数据,并根据行为,而不是其他的面板数据。

When I click for update the one panel, then my page receive all the input data of the page (ok this is logical) but I won to read only this UpdatePanels data and act according, and not the other panels data.

所以,我看到大量的流量是发生过这种方式。

So I see that a lot of traffic is happened this way.

那么,有没有办法说一个UpdatePanel的 - 只发送我的输入数据,而不是网页上的所有发现。 ?

So is there a way to say to one UpdatePanel - send only my input data, and not everything found on the page. ?

感谢您先进的。

推荐答案

我认为,这是不可能的。虽然UpdatePanel的更新页面只有一部分,一个完整的回发总是在发生。这就是为什么在UpdatePanel不建议用于Ajax应用程序。您可以考虑使用一个Ajax客户端库,如jQuery和AJAX的WCF服务。这将是比的UpdatePanel更加高效。

I believe that this isn't possible. Although UpdatePanel updates only a portion of the page, a full post-back is always happening. This is why an UpdatePanel isn't recommended for Ajax applications. You may consider using an Ajax client library, like jQuery and ajax-enabled WCF services. This will be much more efficient than UpdatePanels.

您可以阅读有关的UpdatePanel 这里一篇很好的文章。

You can read a nice article about UpdatePanel here.

这篇关于如何限制上的UpdatePanel后的值是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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