<?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: ASP:Listbox &#8211; How To Populate a Listbox from a C# Generic List</title>
	<atom:link href="http://ilearneditonline.wordpress.com/2007/03/06/asplistbox-how-to-populate-a-listbox-from-a-c-generic-list/feed/" rel="self" type="application/rss+xml" />
	<link>http://ilearneditonline.wordpress.com/2007/03/06/asplistbox-how-to-populate-a-listbox-from-a-c-generic-list/</link>
	<description></description>
	<lastBuildDate>Wed, 18 Feb 2009 19:09:56 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Joe</title>
		<link>http://ilearneditonline.wordpress.com/2007/03/06/asplistbox-how-to-populate-a-listbox-from-a-c-generic-list/#comment-53</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Thu, 08 Mar 2007 18:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.ilearneditonline.com/?p=79#comment-53</guid>
		<description>This is not the only way to do this. One thing I didn&#039;t point out is that I had to filter out certain records. His original looked more like this...

foreach (MyList v in thelist)
{
    if ( v.StateCode != &quot;SC&quot; &#124;&#124; v.StateCode != &quot;NC&quot; )
    {
        ListItem li = new ListItem();
        li.Value = v.StateCode;
        li.Text = v.StateName;
        mylist.Items.Add(li);
        li  = null;
    }
}</description>
		<content:encoded><![CDATA[<p>This is not the only way to do this. One thing I didn&#8217;t point out is that I had to filter out certain records. His original looked more like this&#8230;</p>
<p>foreach (MyList v in thelist)<br />
{<br />
    if ( v.StateCode != &#8220;SC&#8221; || v.StateCode != &#8220;NC&#8221; )<br />
    {<br />
        ListItem li = new ListItem();<br />
        li.Value = v.StateCode;<br />
        li.Text = v.StateName;<br />
        mylist.Items.Add(li);<br />
        li  = null;<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
