Export (0) Print
Expand All

ListControl.SelectedIndexChanged Event

Occurs when the selection from the list control changes between posts to the server.

[Visual Basic]
Public Event SelectedIndexChanged As EventHandler
[C#]
public event EventHandler SelectedIndexChanged;
[C++]
public: __event EventHandler* SelectedIndexChanged;

[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an argument of type EventArgs.

Remarks

The SelectedIndexChanged event is raised when the selection from the list control changes between posts to the server.

Note   A list control must persist some values between posts to the server for this event to work correctly. Be sure that view state is enabled for the list control.

For more information about handling events, see Consuming Events.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

ListControl Class | ListControl Members | System.Web.UI.WebControls Namespace | OnSelectedIndexChanged

Show:
© 2014 Microsoft