<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Internet Explorer Web Controls</title><link>http://forums.asp.net/91.aspx</link><description>General discussion of the Internet Explorer Web Controls source package for ASP.NET 1.x.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: How do I find out which CheckBoxList item has been clicked?</title><link>http://forums.asp.net/thread/3256066.aspx</link><pubDate>Wed, 24 Jun 2009 17:32:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3256066</guid><dc:creator>mychucky</dc:creator><author>mychucky</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3256066.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=91&amp;PostID=3256066</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;kclark1515:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;I know this is an old thread, but I found this, and it really helped me find out which item has just been checked/unchecked.&amp;nbsp; Hope it helps someone else!!!&lt;/p&gt;
&lt;p&gt;protected void cbYears_SelectedIndexChanged(object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string result = Request.Form[&amp;quot;__EVENTTARGET&amp;quot;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string [] checkedBox = result.Split(&amp;#39;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;); ;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int index = int.Parse(checkedBox[checkedBox.Length - 1]);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (cbYears.Items[index].Selected)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Thanks! I&amp;#39;ll sure try it sometime.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How do I find out which CheckBoxList item has been clicked?</title><link>http://forums.asp.net/thread/3255618.aspx</link><pubDate>Wed, 24 Jun 2009 14:20:21 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3255618</guid><dc:creator>kclark1515</dc:creator><author>kclark1515</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3255618.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=91&amp;PostID=3255618</wfw:commentRss><description>&lt;p&gt;I know this is an old thread, but I found this, and it really helped me find out which item has just been checked/unchecked.&amp;nbsp; Hope it helps someone else!!!&lt;/p&gt;
&lt;p&gt;protected void cbYears_SelectedIndexChanged(object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string result = Request.Form[&amp;quot;__EVENTTARGET&amp;quot;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string [] checkedBox = result.Split(&amp;#39;$&amp;#39;); ;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int index = int.Parse(checkedBox[checkedBox.Length - 1]);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (cbYears.Items[index].Selected)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How do I find out which CheckBoxList item has been clicked?</title><link>http://forums.asp.net/thread/2560938.aspx</link><pubDate>Fri, 15 Aug 2008 17:48:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2560938</guid><dc:creator>mychucky</dc:creator><author>mychucky</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2560938.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=91&amp;PostID=2560938</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;Bill2clone:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;See &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskdeterminingselectioninlistbox.asp" target="_new"&gt;Determining the Selection in a List Web Server Control&lt;/a&gt;
&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This page doesn&amp;#39;t answer the question. The poster did not asked for a CheckBoxList item that has been selected. He ask for the CheckBoxList item that has been &amp;quot;clicked&amp;quot;. I have the same question too that&amp;#39;s why I am posting to this thread.Regardless if the checkbox is checked or unchecked, I want to know the value of the item that just been clicked. Any suggestion? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How do I find out which CheckBoxList item has been clicked?</title><link>http://forums.asp.net/thread/392710.aspx</link><pubDate>Thu, 13 Nov 2003 08:17:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:392710</guid><dc:creator>Bill2clone</dc:creator><author>Bill2clone</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/392710.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=91&amp;PostID=392710</wfw:commentRss><description>See &lt;a target="_new" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskdeterminingselectioninlistbox.asp"&gt;Determining the Selection in a List Web Server Control&lt;/a&gt;
&lt;br /&gt;</description></item><item><title>How do I find out which CheckBoxList item has been clicked?</title><link>http://forums.asp.net/thread/391776.aspx</link><pubDate>Wed, 12 Nov 2003 14:34:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:391776</guid><dc:creator>Charles Pugh</dc:creator><author>Charles Pugh</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/391776.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=91&amp;PostID=391776</wfw:commentRss><description>How do I find out which CheckBoxList item has been clicked?
&lt;br /&gt;

&lt;br /&gt;
I have a CheckBoxList on my web form with AutopostBack set to true.
&lt;br /&gt;

&lt;br /&gt;
I have dynamically added a number of items to my checkboxlist, and now I want to pick up in CheckBoxList1_SelectedIndexChanged which checkbox the user has just checked or unchecked, how do I do this? Or is there better way?</description></item></channel></rss>