<?xml version="1.0" encoding="ISO-8859-1"?><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/"
		>
<channel>
	<title>Comments on: Simply way of adding a default item to a data bound DropDownList</title>
	<atom:link href="http://egilhansen.com/2008/07/31/simply-way-of-adding-a-default-item-to-a-data-bound-dropdownlist/feed/" rel="self" type="application/rss+xml" />
	<link>http://egilhansen.com/2008/07/31/simply-way-of-adding-a-default-item-to-a-data-bound-dropdownlist/</link>
	<description></description>
	<lastBuildDate>Sat, 04 Sep 2010 10:44:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Joe</title>
		<link>http://egilhansen.com/2008/07/31/simply-way-of-adding-a-default-item-to-a-data-bound-dropdownlist/comment-page-1/#comment-508</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Thu, 20 May 2010 15:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.egil.dk/?p=81#comment-508</guid>
		<description>Nice one.  It would be nice to do it all in the markup though.

I wonder whether it would be possible/desirable to create a WebControl to do this, say ListDefaultItemAdapter.
The markup would look something like:



I&#039;m thinking along the lines that during OnLoad this control could look for the control identified by ListControlId in its NamingContainer, and attach to that controls DataBound event where it would insert the ListItem.

I may play around with this idea.</description>
		<content:encoded><![CDATA[<p>Nice one.  It would be nice to do it all in the markup though.</p>
<p>I wonder whether it would be possible/desirable to create a WebControl to do this, say ListDefaultItemAdapter.<br />
The markup would look something like:</p>
<p>I&#8217;m thinking along the lines that during OnLoad this control could look for the control identified by ListControlId in its NamingContainer, and attach to that controls DataBound event where it would insert the ListItem.</p>
<p>I may play around with this idea.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
