Redigera

Dela via


AsyncPostBackTrigger.EventName Property

Definition

Gets or sets the postback control event that triggers an UpdatePanel control to be updated.

public:
 property System::String ^ EventName { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.TypeConverter("System.Web.UI.Design.AsyncPostBackTriggerEventNameConverter, System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
public string EventName { get; set; }
[System.ComponentModel.TypeConverter("System.Web.UI.Design.AsyncPostBackTriggerEventNameConverter, System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
public string EventName { get; set; }
[<System.ComponentModel.TypeConverter("System.Web.UI.Design.AsyncPostBackTriggerEventNameConverter, System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")>]
member this.EventName : string with get, set
[<System.ComponentModel.TypeConverter("System.Web.UI.Design.AsyncPostBackTriggerEventNameConverter, System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")>]
member this.EventName : string with get, set
Public Property EventName As String

Property Value

The event name. The default value is Empty.

Attributes

Remarks

The EventName property is optional. If it is not specified, the DefaultEventAttribute attribute of the control is used to determine the default event. The following table lists default events for some common ASP.NET 2.0 controls.

Control Default event
Button Click
Calendar SelectionChanged
CheckBox CheckedChanged
GridView SelectedIndexChanged
TextBox TextChanged

Applies to

See also