I have seen a million forums ask this question. This is what has been working for me.
Let me know if I'm way off and have just been lucking out, but I haven't seen a case where the index wasn't the last value in a '$' terminated string.
Code:
protected void checkboxlist_SelectedIndexChanged(object sender, EventArgs e) { CheckBoxList list = (CheckBoxList)sender; string[] control = Request.Form.Get("__EVENTTARGET").Split('$'); int idx = control.Length - 1; string sel = list.Items[Int32.Parse(control[idx])].Value;
Comment