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.

 

 

 

 

 

 

 

EventName Property

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

Syntax

CSharp

[DefaultValueAttribute("")]
[CategoryAttribute("Behavior")]
[TypeConverterAttribute("System.Web.UI.Design.AsyncPostBackTriggerEventNameConverter, System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
public string EventName { get; set; }

VisualBasic

<DefaultValueAttribute("")> _
<CategoryAttribute("Behavior")> _
<TypeConverterAttribute("System.Web.UI.Design.AsyncPostBackTriggerEventNameConverter, System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")> _
Public Property EventName As String

ManagedCPlusPlus

[DefaultValueAttribute(L"")]
[CategoryAttribute(L"Behavior")]
[TypeConverterAttribute(L"System.Web.UI.Design.AsyncPostBackTriggerEventNameConverter, System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
public:
String^ EventName {
	String^ get ();
	void set (String^ value);
}

JSharp

/** @property */
/** @property */

Value

Return Value

A string that represents the event name. The default value is Empty.

Remarks

The EventName property is optional. If it is not specified, the DefaultEventAttribute 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

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