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.

 

 

 

 

 

 

 

SetItem Method (index, item)

Replaces the trigger at the specified index in the UpdatePanelTriggerCollection object.

Syntax

CSharp

protected override void SetItem (
	int index,
	UpdatePanelTrigger item
)

VisualBasic

Protected Overrides Sub SetItem ( _
	index As Integer, _
	item As UpdatePanelTrigger _
)

ManagedCPlusPlus

protected:
virtual void SetItem (
	int index, 
	UpdatePanelTrigger^ item
) override

JSharp

protected void SetItem (
	int index,
	UpdatePanelTrigger item
)

Parameters

index (Int32)

The zero-based index of the trigger to replace.

item (UpdatePanelTrigger)

The new value for the trigger at the specified index. The value can be null for reference types.

Remarks

You can replace an element in the UpdatePanelTriggerCollection object with an AsyncPostBackTrigger object, a PostBackTrigger object, or any custom trigger that derives from UpdatePanelTrigger.

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