<?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"
	>
<channel>
	<title>Comments on: Cannot have multiple items selected in a DropDownList</title>
	<atom:link href="http://www.akamarketing.com/blog/92-cannot-have-multiple-items-selected-in-a-dropdownlist.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.akamarketing.com/blog/92-cannot-have-multiple-items-selected-in-a-dropdownlist.html</link>
	<description>Blogged thoughts, not just any other wordpress blog!</description>
	<pubDate>Tue, 06 Jan 2009 01:09:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Patrick</title>
		<link>http://www.akamarketing.com/blog/92-cannot-have-multiple-items-selected-in-a-dropdownlist.html#comment-71011</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Wed, 17 Dec 2008 14:24:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.akamarketing.com/blog/92-cannot-have-multiple-items-selected-in-a-dropdownlist.html#comment-71011</guid>
		<description>I did not took me a whole day because of your article. Thanks a lot.</description>
		<content:encoded><![CDATA[<p>I did not took me a whole day because of your article. Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gonzo</title>
		<link>http://www.akamarketing.com/blog/92-cannot-have-multiple-items-selected-in-a-dropdownlist.html#comment-69732</link>
		<dc:creator>Gonzo</dc:creator>
		<pubDate>Wed, 12 Nov 2008 20:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.akamarketing.com/blog/92-cannot-have-multiple-items-selected-in-a-dropdownlist.html#comment-69732</guid>
		<description>Actually, this issue applies to any control that uses ListItem, not just dropdowns.  And it's not that uncommon for me since my client requires us to use "Yes" and "No" dropdowns instead of checkboxes so I might have 3 or more dropdowns with the same items in the same page.  Another workaround is to populate your dropdowns like this (sorry, it's VB):


    Public Sub PopulateDropDowns2(ByVal sender As DropDownList)
        Dim lo As ListItem
        lo = New ListItem("Select", -1)
        sender.Items.Add(lo)
        lo = New ListItem("No", 0)
        sender.Items.Add(lo)
        lo = New ListItem("Yes", 1)
        sender.Items.Add(lo)
    End Sub</description>
		<content:encoded><![CDATA[<p>Actually, this issue applies to any control that uses ListItem, not just dropdowns.  And it&#8217;s not that uncommon for me since my client requires us to use &#8220;Yes&#8221; and &#8220;No&#8221; dropdowns instead of checkboxes so I might have 3 or more dropdowns with the same items in the same page.  Another workaround is to populate your dropdowns like this (sorry, it&#8217;s VB):</p>
<p>    Public Sub PopulateDropDowns2(ByVal sender As DropDownList)<br />
        Dim lo As ListItem<br />
        lo = New ListItem(&#8221;Select&#8221;, -1)<br />
        sender.Items.Add(lo)<br />
        lo = New ListItem(&#8221;No&#8221;, 0)<br />
        sender.Items.Add(lo)<br />
        lo = New ListItem(&#8221;Yes&#8221;, 1)<br />
        sender.Items.Add(lo)<br />
    End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonardo santos-Macias</title>
		<link>http://www.akamarketing.com/blog/92-cannot-have-multiple-items-selected-in-a-dropdownlist.html#comment-66875</link>
		<dc:creator>Leonardo santos-Macias</dc:creator>
		<pubDate>Wed, 01 Oct 2008 03:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.akamarketing.com/blog/92-cannot-have-multiple-items-selected-in-a-dropdownlist.html#comment-66875</guid>
		<description>My 5 cents, I started to get the same error when I migrated to .net 2.0 and 3.5, my code is quite complicated but works for sure with .net 1.1. I tried this solution and still get the same error on .net 2.0 and VS2008, downgraded back to 1.1, compiled with VS2003  and works fine without code modifications</description>
		<content:encoded><![CDATA[<p>My 5 cents, I started to get the same error when I migrated to .net 2.0 and 3.5, my code is quite complicated but works for sure with .net 1.1. I tried this solution and still get the same error on .net 2.0 and VS2008, downgraded back to 1.1, compiled with VS2003  and works fine without code modifications</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lacho</title>
		<link>http://www.akamarketing.com/blog/92-cannot-have-multiple-items-selected-in-a-dropdownlist.html#comment-62611</link>
		<dc:creator>Lacho</dc:creator>
		<pubDate>Tue, 26 Aug 2008 14:21:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.akamarketing.com/blog/92-cannot-have-multiple-items-selected-in-a-dropdownlist.html#comment-62611</guid>
		<description>Exactly my problem! Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Exactly my problem! Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raju</title>
		<link>http://www.akamarketing.com/blog/92-cannot-have-multiple-items-selected-in-a-dropdownlist.html#comment-61823</link>
		<dc:creator>raju</dc:creator>
		<pubDate>Thu, 21 Aug 2008 07:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.akamarketing.com/blog/92-cannot-have-multiple-items-selected-in-a-dropdownlist.html#comment-61823</guid>
		<description>thankx for ur help
just add ddlArea4.ClearSelection(); as u said.</description>
		<content:encoded><![CDATA[<p>thankx for ur help<br />
just add ddlArea4.ClearSelection(); as u said.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
