I want to put an update panel childUpdatePanel inside another update panel parentUpdatePanel. The requirement is that childUpdatePanel should not be updated with parentUpdatePanel post back. childUpdatePanel should change only on first page load or complete
post back.
The following list describes the property settings of the
UpdatePanel control that determine when a panel's content is updated during partial-page rendering.
If the UpdateMode property is set toAlways, the
UpdatePanel control’s content is updated on every postback that originates from anywhere on the page. This includes asynchronous postbacks from controls that are inside otherUpdatePanel
controls, and postbacks from controls that are not insideUpdatePanel controls.
If the UpdateMode property is set toConditional, the
UpdatePanel control’s content is updated when one of the following is true:
When the postback is caused by a trigger for that
UpdatePanel control.
When the UpdatePanel control is nested inside anotherUpdatePanel control and the parent panel is updated.
When the
ChildrenAsTriggers property is set to true and any child control of theUpdatePanel control causes a postback. Child controls of nestedUpdatePanel
controls do not cause an update to the outerUpdatePanel control unless they are explicitly defined as triggers for the parent panel.
If the ChildrenAsTriggers property is set tofalse and the
UpdateMode property is set to
Always, an exception is thrown. TheChildrenAsTriggers property is intended to be used only when theUpdateMode
property is set toConditional.
Chetan Sarode
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
abhijeetmish...
Member
272 Points
95 Posts
Update Panel Inside an Update Panel
Feb 23, 2012 06:12 AM|LINK
Hi All,
I want to put an update panel childUpdatePanel inside another update panel parentUpdatePanel. The requirement is that childUpdatePanel should not be updated with parentUpdatePanel post back. childUpdatePanel should change only on first page load or complete post back.
Let me know if you guys need more details.
Thanks,
Abhijeet
cnranasinghe
Star
8885 Points
1798 Posts
Re: Update Panel Inside an Update Panel
Feb 23, 2012 07:00 AM|LINK
http://stackoverflow.com/questions/1595922/nested-updatepanel-triggers
chetan.sarod...
All-Star
65739 Points
11138 Posts
Re: Update Panel Inside an Update Panel
Feb 24, 2012 02:23 AM|LINK
How UpdatePanel Controls Are Refreshed
The following list describes the property settings of the UpdatePanel control that determine when a panel's content is updated during partial-page rendering.
If the UpdateMode property is set toAlways, the UpdatePanel control’s content is updated on every postback that originates from anywhere on the page. This includes asynchronous postbacks from controls that are inside otherUpdatePanel controls, and postbacks from controls that are not insideUpdatePanel controls.
If the UpdateMode property is set toConditional, the UpdatePanel control’s content is updated when one of the following is true:
When the postback is caused by a trigger for that UpdatePanel control.
When you explicitly call the UpdatePanel control's Update() method.
When the UpdatePanel control is nested inside anotherUpdatePanel control and the parent panel is updated.
When the ChildrenAsTriggers property is set to true and any child control of theUpdatePanel control causes a postback. Child controls of nestedUpdatePanel controls do not cause an update to the outerUpdatePanel control unless they are explicitly defined as triggers for the parent panel.
If the ChildrenAsTriggers property is set tofalse and the UpdateMode property is set to Always, an exception is thrown. TheChildrenAsTriggers property is intended to be used only when theUpdateMode property is set toConditional.
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.