ListControl.SelectedIndexChanged Event

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

member SelectedIndexChanged : IEvent<EventHandler,
    EventArgs>

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

System_CAPS_noteNote

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 NIB: Consuming Events.

The following example demonstrates how to specify and code a handler for the SelectedIndexChanged event to display the selection made by the user.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: