Hi
I have a WebForm in this web form i am dynamically loading 6 User Controls these user controls has ajax update panel. & these update panel have web controls.
Now when i click any control of any UCs that click is causing a page post back. due to this all my other cotrols are getting reloaded & respectibve UCs page load is getting fired. I want to restrict this.
I want to add condition on each UC's page load event to check whether this postback is caused due to some other UC's event. If it is caused due to some other UCs event then dont process anything. If it is caused due to its own event then only process it.
I need this cause i see the performnce impact of this.
Hi,
if you set UpdateMode rproperty for each UpdatePanel to "conditional" you can avoid updating all update panels on every click. You will also need to check that your ChildrenAsTriggers property is set to "true".
However, if you do some time consuming procesing on the server you will still need to check which control caused asyncpostback.
-yuriy
http://couldbedone.blogspot.com
Hey yuriy
Thanks for your response. Can you jsut tell me how can i check which control caused Asyncpostback...thats what am lookinh for.
Property of the ScriptManager: AsyncPostBackSourceElementID
No comments:
Post a Comment