UpdatePanel.Triggers 属性

定义

获取一个 UpdatePanelTriggerCollection 对象,该对象包含以声明方式为 AsyncPostBackTrigger 控件注册的 PostBackTriggerUpdatePanel 对象。Gets an UpdatePanelTriggerCollection object that contains AsyncPostBackTrigger and PostBackTrigger objects that were registered declaratively for the UpdatePanel control.

public:
 property System::Web::UI::UpdatePanelTriggerCollection ^ Triggers { System::Web::UI::UpdatePanelTriggerCollection ^ get(); };
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.UpdatePanelTriggerCollection Triggers { get; }
member this.Triggers : System.Web.UI.UpdatePanelTriggerCollection
Public ReadOnly Property Triggers As UpdatePanelTriggerCollection

属性值

类型为 AsyncPostBackTriggerPostBackTrigger 的对象的集合。A collection of objects of type AsyncPostBackTrigger and PostBackTrigger.

属性

注解

Triggers 属性获取已为 UpdatePanel 控件定义的所有触发器的集合。The Triggers property gets a collection of all the triggers that have been defined for the UpdatePanel control. (您可以使用设计器中的 " UpdatePanelTrigger 集合编辑器" 对话框以声明方式定义触发器,也可以通过使用 UpdatePanel 控件的 <Triggers> 元素进行定义。)集合包括 AsyncPostBackTriggerPostBackTrigger 对象。(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.

不会在视图状态中跟踪 Triggers 集合中定义的声明性触发器。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.

适用于

另请参阅