Sandeep Talabathula

Accessing the EventArgs of checkboxlist SelectedIndexChanged event

November 23, 2009

Probably as you came across, we can’t able to access to the event args associated with checkbox clicked in a checkboxlist using the SelectedIndexChanged event.

But you can. That info is contained in ASP.NET's own_ _EVENTTARGET field.

<%@ page language="VB" %>

Who posted back?

<asp:checkboxlist id="CheckBoxList1" runat="server" autopostback="True">

asp:listitemRed

asp:listitemGreen

asp:listitemBlue

You should be able to get it from there as shown in the following code:


Originally posted on Things on Tech.

← All posts