<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: CheckBoxList Control in ASP.NET</title>
	<atom:link href="http://rhondatipton.net/2006/11/24/checkboxlist-control-in-aspnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://rhondatipton.net/2006/11/24/checkboxlist-control-in-aspnet/</link>
	<description>Random Subject Matters</description>
	<lastBuildDate>Wed, 10 Mar 2010 10:44:33 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: binaryoptions</title>
		<link>http://rhondatipton.net/2006/11/24/checkboxlist-control-in-aspnet/#comment-886</link>
		<dc:creator>binaryoptions</dc:creator>
		<pubDate>Mon, 05 Jan 2009 21:32:56 +0000</pubDate>
		<guid isPermaLink="false">http://rtipton.wordpress.com/2006/11/24/checkboxlist-control-in-aspnet/#comment-886</guid>
		<description>I found your entry useful, but I wrote the following modification: 
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        If (DropDownList1.SelectedIndex  0) Then
            Response.Redirect(&quot;DeviceLibDetails.aspx?SelectedValu=&quot; _
            + DropDownList1.Text + &quot;&amp;this=&quot; _
            + DropDownList1.SelectedItem.Text)
        Else
            Dim li As ListItem
            Label1.Text = &quot;You selected :&quot;
            For Each li In CheckBoxList1.Items
                If (li.Selected  0) Then
                    Label1.Text += li.Text + li.Value + &quot;&quot;
                End If
            Next
        End If
    End Sub
    
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
        Button1.Focus()
    End Sub
    
    Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        DropDownList1.SelectedIndex = -1
        CheckBoxList1.ClearSelection()
        Label1.Text = &quot; &quot;
    End Sub


In the Dropdown list I&#039;m able to pass the values to another .aspx page. How do I do the same with the CheckBoxList values?</description>
		<content:encoded><![CDATA[<p>I found your entry useful, but I wrote the following modification:<br />
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)<br />
        If (DropDownList1.SelectedIndex  0) Then<br />
            Response.Redirect(&#8220;DeviceLibDetails.aspx?SelectedValu=&#8221; _<br />
            + DropDownList1.Text + &#8220;&amp;this=&#8221; _<br />
            + DropDownList1.SelectedItem.Text)<br />
        Else<br />
            Dim li As ListItem<br />
            Label1.Text = &#8220;You selected :&#8221;<br />
            For Each li In CheckBoxList1.Items<br />
                If (li.Selected  0) Then<br />
                    Label1.Text += li.Text + li.Value + &#8220;&#8221;<br />
                End If<br />
            Next<br />
        End If<br />
    End Sub</p>
<p>    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)<br />
        Button1.Focus()<br />
    End Sub</p>
<p>    Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs)<br />
        DropDownList1.SelectedIndex = -1<br />
        CheckBoxList1.ClearSelection()<br />
        Label1.Text = &#8221; &#8221;<br />
    End Sub</p>
<p>In the Dropdown list I&#8217;m able to pass the values to another .aspx page. How do I do the same with the CheckBoxList values?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
