0 out of 2 rated this helpful - Rate this topic

UpdatePanel.ChildrenAsTriggers Property

Gets or sets a value that indicates whether postbacks from immediate child controls of an UpdatePanel control update the panel's content.

Namespace:  System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)
public bool ChildrenAsTriggers { get; set; }
<asp:UpdatePanel ChildrenAsTriggers="True|False" />

Property Value

Type: System.Boolean
true if postbacks from immediate child controls of the UpdatePanel control update the panel's content; otherwise, false. The default is true.

Set the ChildrenAsTriggers property to true if you want postbacks from immediate child controls of the UpdatePanel control to cause an update of the panel's content. Child controls of nested UpdatePanel controls will not cause an update of the parent UpdatePanel control's content unless you call the Update method explicitly or you define the child controls as triggers.

NoteNote

When the UpdateMode property is set to Always and the ChildrenAsTriggers property is set to false, an InvalidOperationException exception is thrown during the OnPreRender method. This combination of properties is not allowed for the UpdatePanel control.

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.

.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.