Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

Triggers Property

Gets an UpdatePanelTriggerCollection object that contains AsyncPostBackTrigger and PostBackTrigger objects that were registered declaratively for the UpdatePanel control.

Syntax

CSharp

[MergablePropertyAttribute(false)]
[DefaultValueAttribute(null)]
[EditorAttribute("System.Web.UI.Design.UpdatePanelTriggerCollectionEditor, System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", typeof(UITypeEditor))]
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[CategoryAttribute("Behavior")]
public UpdatePanelTriggerCollection Triggers { get; }

VisualBasic

<MergablePropertyAttribute(False)> _
<DefaultValueAttribute(Nothing)> _
<EditorAttribute("System.Web.UI.Design.UpdatePanelTriggerCollectionEditor, System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", GetType())> _
<PersistenceModeAttribute(PersistenceMode.InnerProperty)> _
<CategoryAttribute("Behavior")> _
Public ReadOnly Property Triggers As UpdatePanelTriggerCollection

ManagedCPlusPlus

[MergablePropertyAttribute(false)]
[DefaultValueAttribute(nullptr)]
[EditorAttribute(L"System.Web.UI.Design.UpdatePanelTriggerCollectionEditor, System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", typeof())]
[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
[CategoryAttribute(L"Behavior")]
public:
UpdatePanelTriggerCollection^ Triggers {
	UpdatePanelTriggerCollection^ get ();
}

JSharp

/** @property */

Value

Return Value

A collection of objects of type AsyncPostBackTrigger and PostBackTrigger.

Remarks

The Triggers property gets a collection of all the triggers that have been defined for the UpdatePanel control. (You can define triggers declaratively by using the UpdatePanelTrigger Collection Editor dialog box in the designer or by using the <Triggers> element of the UpdatePanel control.) The collection includes AsyncPostBackTrigger and PostBackTrigger objects.

Declarative triggers that are defined in the Triggers collection are not tracked in view state.

When a control that is a naming container is used as a trigger, all its child controls that cause postback behave as triggers.

Assembly: System.Web.Extensions (Module: System.Web.Extensions)