How to get the current selected item value in CheckBoxList C#
social.msdn.microsoft.com › Forums › en-USJan 19, 2012 · Put the following code in the SelectedIndexChanged event of the checkboxlist: protected void CheckBoxList1_SelectedIndexChanged (object sender, EventArgs e) { string value = string.Empty; string result = Request.Form ["__EVENTTARGET"]; string [] checkedBox = result.Split ('$'); ; int index = int.Parse (checkedBox [checkedBox.Length - 1]); if (CheckBoxList1.Items [index].Selected) { value = CheckBoxList1.Items [index].Value; } Response.Write ("Last Selected Value : " + value); }