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