| Visual Basic (Declaration) | |
|---|---|
<DescriptionAttribute("Fires when the selected index has been changed.")> <CategoryAttribute("Action")> Public Shadows Event SelectedIndexChanged As EventHandler | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As LiveRadioButtonList Dim handler As EventHandler AddHandler instance.SelectedIndexChanged, handler | |
| C# | |
|---|---|
[DescriptionAttribute("Fires when the selected index has been changed.")] [CategoryAttribute("Action")] public new event EventHandler SelectedIndexChanged | |
| C++/CLI | |
|---|---|
[DescriptionAttribute("Fires when the selected index has been changed.")] [CategoryAttribute("Action")] public: new event EventHandler^ SelectedIndexChanged | |
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.
Target Platforms: Microsoft .NET Framework 2.0