Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET C#4.0
what is update panel childrenastriggers property and for what it is used plz explain it with an example plzzzz...thanku
Posted 4-Dec-12 0:30am
Edited 4-Dec-12 2:00am
v4
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

when set to true update panel receives postback only from controls kept inside it. otherwise, it will be postedback always. this is useful when you have put multiple updatepanel controls on same page.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Children as [^]
 
The ChildrenAsTriggers property determines whether postbacks from a child ontrol in an UpdatePanel result in its contents being refreshed. By default, this property is set to True and can be set to False only when the UpdateMode is set to conditional. Attempting to do so without this condition results in an InvalidOperationException being thrown by the ScriptManager during the page’s PreRender event.
 
Setting the property to False allows asynchronous postbacks to occur, but the ScriptManager bypasses any updates to the UpdatePanel that are associated with the postback.
 
Above was taken from ASP.NET AJAX in Action book. I thought it would better than my own words
 
So if you set this property to False, then any button or link button or any control that cause postback inside the panel will cause the page to post back normally (reload entire page)
 
the bellow is taken from the documentation:
 
A scenario where you might set ChildrenAsTriggers to false is when you have two UpdatePanel controls and you want a postback from the first panel to update the content of the second panel but not update its own content. For example, the first panel might be a list of products to buy and the second panel might be a shopping cart.
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 511
1 OriginalGriff 344
2 DamithSL 235
3 Maciej Los 140
4 Bruno Sprecher 130
0 DamithSL 185
1 OriginalGriff 105
2 Peter Leow 60
3 Maciej Los 50
4 abhijeetgupta1988 45


Advertise | Privacy | Mobile
Web02 | 2.8.141030.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100