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.

 

 

 

 

 

 

 

UpdatePanelTriggerCollection Class

Represents a collection of UpdatePanelTrigger objects for an UpdatePanel control.

Syntax

CSharp

[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class UpdatePanelTriggerCollection : Collection<UpdatePanelTrigger>

VisualBasic

<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class UpdatePanelTriggerCollection _
	Inherits Collection(Of UpdatePanelTrigger)

ManagedCPlusPlus

[AspNetHostingPermissionAttribute(SecurityAction::InheritanceDemand, Level = AspNetHostingPermissionLevel::Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction::LinkDemand, Level = AspNetHostingPermissionLevel::Minimal)]
public ref class UpdatePanelTriggerCollection : public Collection<UpdatePanelTrigger^>

JSharp

/** @attribute AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal) */
/** @attribute AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal) */
public class UpdatePanelTriggerCollection extends Collection<UpdatePanelTrigger>

Members

IconMemberDescription
UpdatePanelTriggerCollectionNew(UpdatePanel)Initializes a new instance of the UpdatePanelTrigger collection class.
Add(UpdatePanelTrigger)Adds an object to the end of the Collection. (Inherited from Collection<(Of UpdatePanelTrigger>).)
Clear()Removes all elements from the Collection. (Inherited from Collection<(Of UpdatePanelTrigger>).)
ClearItems()Removes all elements from the UpdatePanelTriggerCollection. (Overrides Collection<(Of UpdatePanelTrigger>).ClearItems().)
Contains(UpdatePanelTrigger)Determines whether an element is in the Collection. (Inherited from Collection<(Of UpdatePanelTrigger>).)
CopyTo(UpdatePanelTrigger[](), Int32)Copies the entire Collection to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from Collection<(Of UpdatePanelTrigger>).)
CountGets the number of elements actually contained in the Collection. (Inherited from Collection<(Of UpdatePanelTrigger>).)
Equals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Finalize()Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
GetEnumerator()Returns an enumerator that iterates through the Collection. (Inherited from Collection<(Of UpdatePanelTrigger>).)
GetHashCode()Serves as a hash function for a particular type. (Inherited from Object.)
GetType()Gets the Type of the current instance. (Inherited from Object.)
IndexOf(UpdatePanelTrigger)Searches for the specified object and returns the zero-based index of the first occurrence within the entire Collection. (Inherited from Collection<(Of UpdatePanelTrigger>).)
Insert(Int32, UpdatePanelTrigger)Inserts an element into the Collection at the specified index. (Inherited from Collection<(Of UpdatePanelTrigger>).)
InsertItem(Int32, UpdatePanelTrigger)Inserts an UpdatePanelTrigger object into the UpdatePanelTriggerCollection object at the specified index. (Overrides Collection<(Of UpdatePanelTrigger>).InsertItem(Int32, UpdatePanelTrigger).)
Item(Int32)Gets or sets the element at the specified index. (Inherited from Collection<(Of UpdatePanelTrigger>).)
ItemsGets a IList wrapper around the Collection. (Inherited from Collection<(Of UpdatePanelTrigger>).)
MemberwiseClone()Creates a shallow copy of the current Object. (Inherited from Object.)
OwnerGets a reference to the UpdatePanel control that the UpdatePanelTriggerCollection belongs to.
Remove(UpdatePanelTrigger)Removes the first occurrence of a specific object from the Collection. (Inherited from Collection<(Of UpdatePanelTrigger>).)
RemoveAt(Int32)Removes the element at the specified index of the Collection. (Inherited from Collection<(Of UpdatePanelTrigger>).)
RemoveItem(Int32)Removes the element at the specified index of the UpdatePanelTriggerCollection. (Overrides Collection<(Of UpdatePanelTrigger>).RemoveItem(Int32).)
SetItem(Int32, UpdatePanelTrigger)Replaces the trigger at the specified index in the UpdatePanelTriggerCollection object. (Overrides Collection<(Of UpdatePanelTrigger>).SetItem(Int32, UpdatePanelTrigger).)
ToString()Returns a String that represents the current Object. (Inherited from Object.)

Remarks

Triggers in the UpdatePanelTrigger collection are specified by using the UpdatePanelTrigger Collection Editor in the designer or by adding them declaratively as <Triggers> elements inside the UpdatePanel control. You can add two types of triggers:

  • An AsyncPostBackTrigger object that can be used to specify that a control can cause an asynchronous postback and refresh the update panel's contents. The AsyncPostBackTrigger object is used for controls outside an update panel or controls that are not immediate child controls of an UpdatePanel control.

  • A PostBackTrigger object that can be used to specify that a postback control inside an UpdatePanel control can cause a synchronous postback and a full-page refresh.

Permissions

  • AspNetHostingPermission

    for operating in a hosted environment. Demand value: LinkDemand. Permission value: Minimal.

  • AspNetHostingPermission

    for operating in a hosted environment. Demand value: InheritanceDemand. Permission value: Minimal.

Inheritance Hierarchy

Object

See Also

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