AsyncPostBackTrigger.EventName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.