开发者

How to limit the number of post values on UpdatePanel?

开发者 https://www.devze.com 2022-12-29 00:10 出处:网络
I have notice that the UpdatePanel post every field included on the form on every trigger. But in most of my cases I use 2-3 UpdatePanels at the same page, and each one is independent.

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

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

When I click for update the one panel, then my page receive all the input data of 开发者_JS百科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.

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

Thank you in advanced.


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.

You can read a nice article about UpdatePanel here.

0

精彩评论

暂无评论...
验证码 换一张
取 消