<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hobbscene.com</title>
	<atom:link href="http://hobbscene.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hobbscene.com</link>
	<description>Uncensored web development. Parental guidance suggested.</description>
	<lastBuildDate>Thu, 22 Mar 2012 22:40:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MultiSelect with checkboxes</title>
		<link>http://hobbscene.com/2012/03/22/multiselect-with-checkboxes/</link>
		<comments>http://hobbscene.com/2012/03/22/multiselect-with-checkboxes/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 22:40:30 +0000</pubDate>
		<dc:creator>Tim Hobbs</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://hobbscene.com/?p=233</guid>
		<description><![CDATA[More work on my nopCommerce plugin. This time, I wanted to offer more than the standard multi-select listbox. I thought it would be nice if the list had checkboxes. There are an infinite number of smarter people out there than myself, so I Googled knowing someone had some javascript goodness. I found the jQuery UI [...]]]></description>
			<content:encoded><![CDATA[<p>More work on my nopCommerce plugin. This time, I wanted to offer more than the standard multi-select listbox. I thought it would be nice if the list had checkboxes. There are an infinite number of smarter people out there than myself, so I Googled knowing someone had some javascript goodness. I found the <a href="http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/" target="_blank">jQuery UI MultiSelect Widget</a>. This is an awesome little plugin that is themable using jQuery UI. I know that nopCommerce doesn&#8217;t use jQuery UI in the admin (it is a Telerik MVC &#8220;shop&#8221;), but I still appreciate the ability since I really love the jQuery UI stuff.</p>
]]></content:encoded>
			<wfw:commentRss>http://hobbscene.com/2012/03/22/multiselect-with-checkboxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MVC multiple form validation</title>
		<link>http://hobbscene.com/2012/03/22/mvc-multiple-form-validation/</link>
		<comments>http://hobbscene.com/2012/03/22/mvc-multiple-form-validation/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 20:04:24 +0000</pubDate>
		<dc:creator>Tim Hobbs</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://hobbscene.com/?p=228</guid>
		<description><![CDATA[In the nop Commerce plugin I am creating, I have multiple forms on the page. I needed to validate the forms separately. I found an excellent post on just that subject. Like usual, I did not implement it exactly but it got me headed in the proper direction&#8230;]]></description>
			<content:encoded><![CDATA[<p>In the nop Commerce plugin I am creating, I have multiple forms on the page. I needed to validate the forms separately. I found an <a href="http://blogs.imeta.co.uk/MBest/archive/2010/01/19/833.aspx" target="_blank">excellent post</a> on just that subject.</p>
<p>Like usual, I did not implement it <em>exactly </em>but it got me headed in the proper direction&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://hobbscene.com/2012/03/22/mvc-multiple-form-validation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MVC Templates</title>
		<link>http://hobbscene.com/2012/03/22/mvc-templates/</link>
		<comments>http://hobbscene.com/2012/03/22/mvc-templates/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 20:00:24 +0000</pubDate>
		<dc:creator>Tim Hobbs</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[templates]]></category>

		<guid isPermaLink="false">http://hobbscene.com/?p=225</guid>
		<description><![CDATA[I am creating a plugin for our nopCommerce site, and I wanted to use a rich text editor for my admin page. I started looking at how to use the Telerik MVC editor, but then I realized I should be looking at an editor template. I found a great post by Brad Wilson about MVC [...]]]></description>
			<content:encoded><![CDATA[<p>I am creating a plugin for our nopCommerce site, and I wanted to use a rich text editor for my admin page. I started looking at how to use the Telerik MVC editor, but then I realized I should be looking at an editor template. I found a great post by Brad Wilson about <a href="http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-1-introduction.html" target="_blank">MVC templates</a>.</p>
<p>This got me thinking. We opted to switch the rich editor from Telerik to CKEditor (for file upload ability) and when we did that I made the change by creating a new shared editor template. Since this plugin is ultimately used within the admin section, I thought I may be able to make use of the existing editor template. Sure enough, I could. Adding a simple template name parameter to the Html.EditorFor did the trick.</p>
]]></content:encoded>
			<wfw:commentRss>http://hobbscene.com/2012/03/22/mvc-templates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASPState</title>
		<link>http://hobbscene.com/2012/03/16/aspstate/</link>
		<comments>http://hobbscene.com/2012/03/16/aspstate/#comments</comments>
		<pubDate>Fri, 16 Mar 2012 16:09:23 +0000</pubDate>
		<dc:creator>Tim Hobbs</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[DB]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://hobbscene.com/?p=180</guid>
		<description><![CDATA[I just had to configure a fresh server install, and I had a little basic setup. It has been a while since I did anything like this, and I don&#8217;t remember how to setup the session state DB. To install the ASPState session state DB use the following command: aspnet_regsql.exe -ssadd -sstype p -S {Server} [...]]]></description>
			<content:encoded><![CDATA[<p>I just had to configure a fresh server install, and I had a little basic setup. It has been a while since I did anything like this, and I don&#8217;t remember how to setup the session state DB.</p>
<p>To install the ASPState session state DB use the following command:</p>
<pre>aspnet_regsql.exe -ssadd -sstype p -S {Server} -U {Username} -P {Password}</pre>
]]></content:encoded>
			<wfw:commentRss>http://hobbscene.com/2012/03/16/aspstate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JS MVC/MVVM Frameworks</title>
		<link>http://hobbscene.com/2011/10/24/js-mvcmvvm-frameworks/</link>
		<comments>http://hobbscene.com/2011/10/24/js-mvcmvvm-frameworks/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 16:40:28 +0000</pubDate>
		<dc:creator>Tim Hobbs</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[frameworks]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://hobbscene.com/?p=213</guid>
		<description><![CDATA[My recent dive into MVC has me wanting to do some client-side razzle-dazzle. I have a Tekpub subscription and Rob&#8217;s MVC3 vid shows off backbone.js. It looks interesting, but it looks a tab bit complicated and cumbersome. I have to say that the URL router stuff is awesome sauce. I decided I&#8217;d start looking around. [...]]]></description>
			<content:encoded><![CDATA[<p>My recent dive into MVC has me wanting to do some client-side razzle-dazzle. I have a <a href="http://tekpub.com/" target="_blank">Tekpub</a> subscription and Rob&#8217;s MVC3 vid shows off <a href="http://documentcloud.github.com/backbone/" target="_blank">backbone.js</a>. It looks interesting, but it looks a tab bit complicated and cumbersome. I have to say that the URL router stuff is awesome sauce.</p>
<p>I decided I&#8217;d start looking around. Last year on one of the <a href="http://hanselminutes.com" target="_blank">Hanselminutes</a> podcasts <a href="http://hanselminutes.com/243/knockout-javascript-with-steve-sanderson" target="_blank">he spoke with Steve Sanderson</a> about <a href="http://knockoutjs.com/" target="_blank">knockout.js</a>. At the time I wasn&#8217;t doing anything with MVC, so I did not think it would be of much value, but I filed it away. (<strong>NOTE:</strong> I realize now I could use knockout, backbone, whatever with Webforms, but did not realize it at the time.) I must say knockout looks pretty sweet. I watched Steve&#8217;s presentation at MIX11 and I really love the two-way binding out of the box (that was the one thing I did not care for much about backbone, though I realize there is a plugin for it).</p>
<p>While both knockout and backbone look really cool, I cannot decide which one to go with? Unfortunately there is not a jQuery-like choice here &#8211; there is not a real dominant player that everyone has decided on. So, I decided I&#8217;d check out some opinions. There is <a href="http://stackoverflow.com/questions/5112899/knockout-js-vs-backbone-js-vs" target="_blank">a great question on StackOverflow</a> (naturally) and it has lots of good info. There are some other options to consider as well:</p>
<ul>
<li><a href="http://batmanjs.org/">batman.js</a></li>
<li><a href="http://www.sproutcore.com/">Sproutcore</a></li>
<li><a href="http://blog.sproutcore.com/sproutcore-amber-a-report-by-yehuda/" target="_blank">Amber</a></li>
<li><a href="http://www.javascriptmvc.com/" target="_blank">Javascript MVC</a></li>
</ul>
<p>There is a LOT more out there then I thought. I guess I am going to have to take a little time and weigh the pros/cons of each before I go jumping in to using one &#8211; <em>not</em> my strong suit!</p>
]]></content:encoded>
			<wfw:commentRss>http://hobbscene.com/2011/10/24/js-mvcmvvm-frameworks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conditional validation</title>
		<link>http://hobbscene.com/2011/10/22/conditional-validation/</link>
		<comments>http://hobbscene.com/2011/10/22/conditional-validation/#comments</comments>
		<pubDate>Sat, 22 Oct 2011 19:52:48 +0000</pubDate>
		<dc:creator>Tim Hobbs</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[client validation]]></category>
		<category><![CDATA[Custom Attributes]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://hobbscene.com/?p=192</guid>
		<description><![CDATA[Related to my recent post about cascading drop down lists, I needed to do some conditional validation based on a drop down list selection. I found a great post on Simon Ince&#8217;s blog about conditional validation in MVC 3. He even has a new project to wrap up some of the conditional functionality that he [...]]]></description>
			<content:encoded><![CDATA[<p>Related to <a href="http://hobbscene.com/2011/10/22/asp-net-mvc-cascading-drop-down-lists/">my recent post</a> about cascading drop down lists, I needed to do some conditional validation based on a drop down list selection. I found a great post on Simon Ince&#8217;s blog about <a href="http://blogs.msdn.com/b/simonince/archive/2011/02/04/conditional-validation-in-asp-net-mvc-3.aspx" target="_blank">conditional validation in MVC 3</a>. He even has a new project to wrap up some of the conditional functionality that he blogged about, but I decided to roll my own since I would learn more going that route.</p>
<p>Using the project attached to his post, I started dissecting what he was doing. After a while, I got the client validation working, but I realized I was so focused on the client/server validation piece that I did not get my conditions correct! After a few tweaks, I finally got everything working. Here is the custom attribute:</p>
<pre class="brush: csharp; title: ; notranslate">
public class ConditionalMaximumWeightAttribute : ValidationAttribute, IClientValidatable {

    private const string ERRORMSG = &quot;Weight must not exceed {0} lbs.&quot;;

    public string DependentProperty { get; set; }
    public string DependentValue { get; set; }
    public int MaximumWeight { get; set; }

    public ConditionalMaximumWeightAttribute(string dependentProperty, string dependentValue, int maximumWeight) {
        this.DependentProperty = dependentProperty;
        this.DependentValue = dependentValue;
        this.MaximumWeight = maximumWeight;
    }

    public IEnumerable&lt;ModelClientValidationRule&gt; GetClientValidationRules(ModelMetadata metadata, ControllerContext context) {
        var rule = new ModelClientValidationRule() {
            ErrorMessage = String.Format(ERRORMSG, this.MaximumWeight),
            ValidationType = &quot;maximumweight&quot;,
        };

        string depProp = BuildDependentPropertyId(metadata, context as ViewContext);

        rule.ValidationParameters.Add(&quot;dependentproperty&quot;, depProp);
        rule.ValidationParameters.Add(&quot;dependentvalue&quot;, this.DependentValue);
        rule.ValidationParameters.Add(&quot;weightvalue&quot;, this.MaximumWeight);

        yield return rule;
    }

    protected override ValidationResult IsValid(object value, ValidationContext validationContext) {
        // get a reference to the property this validation depends upon
        var containerType = validationContext.ObjectInstance.GetType();
        var field = containerType.GetProperty(this.DependentProperty);

        if (field != null) {
            // get the value of the dependent property
            var dependentvalue = field.GetValue(validationContext.ObjectInstance, null);

            var weight = containerType.GetProperty(validationContext.DisplayName);
            int weightvalue = (int)weight.GetValue(validationContext.ObjectInstance, null);

            // compare the value against the target value
            if (dependentvalue == this.DependentValue &amp;amp;amp;&amp;amp;amp; weightvalue &amp;amp;gt; this.MaximumWeight) {
                // validation failed - return an error
                return new ValidationResult(String.Format(ERRORMSG, this.MaximumWeight));
            }
        }

        return ValidationResult.Success;
    }

    private string BuildDependentPropertyId(ModelMetadata metadata, ViewContext viewContext) {
        // build the ID of the property
        string depProp = viewContext.ViewData.TemplateInfo.GetFullHtmlFieldId(this.DependentProperty);
        // unfortunately this will have the name of the current field appended to the beginning,
        // because the TemplateInfo's context has had this fieldname appended to it. Instead, we
        // want to get the context as though it was one level higher (i.e. outside the current property,
        // which is the containing object (our Person), and hence the same level as the dependent property.
        var thisField = metadata.PropertyName + &quot;_&quot;;
        if (depProp.StartsWith(thisField))
            // strip it off again
            depProp = depProp.Substring(thisField.Length);
        return depProp;
    }
}
</pre>
<p><a href="https://gist.github.com/1306396" target="_blank">Gist</a></p>
<p>To put this in context, I need to restrict a maximum weight allowed for a carrier. At a certain point, we may as well go with another carrier because it is cheaper. However, I don&#8217;t want to restrict the maximum weight if the carrier that has been selected <em>is</em> the cheaper carrier.</p>
<p>The attribute is used like so, where <code>PropertyName</code> is the name of the related property to check, <code>PropertyValue</code> is the conditional value of the property, and <code>MaximumWeight</code> is an integer representing the maximum weight for the conditional:</p>
<pre class="brush: csharp; title: ; notranslate">
public class ...

    [ConditionalMaximumWeight(&quot;PropertyName&quot;, &quot;PropertyValue&quot;, MaximumWeight)]
    [Required(ErrorMessage = &quot;Weight required&quot;)]
    public int? Weight { get; set; }

    ...
}
</pre>
<p>Here is the client-side implementation:</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
    $.validator.addMethod(&quot;maximumweight&quot;,
        function (value, element, parameters) {
            var carrier = $(&quot;#&quot; + parameters[&quot;dependentproperty&quot;]).val();
            var carriervalue = parameters[&quot;dependentvalue&quot;].toString();
            var weightvalue = Number(parameters[&quot;weightvalue&quot;]);
            if (carrier == carriervalue &amp;&amp; value &gt; weightvalue) {
                return false;
            }
            return true;
        }
    );

    $.validator.unobtrusive.adapters.add(
    &quot;maximumweight&quot;,
    [&quot;weightvalue&quot;, &quot;dependentproperty&quot;, &quot;dependentvalue&quot;],
    function (options) {
        options.rules[&quot;maximumweight&quot;] = {
            weightvalue: options.params[&quot;weightvalue&quot;],
            dependentproperty: options.params[&quot;dependentproperty&quot;],
            dependentvalue: options.params[&quot;dependentvalue&quot;]
        };
        options.messages[&quot;maximumweight&quot;] = options.message;
    });
&lt;/script&gt;
</pre>
<p><a href="https://gist.github.com/1306413" target="_blank">Gist</a></p>
<p>I should probably do a little null checking in on the client-side, but I may just find that out the hard way! <img src='http://hobbscene.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://hobbscene.com/2011/10/22/conditional-validation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET MVC Cascading drop down lists</title>
		<link>http://hobbscene.com/2011/10/22/asp-net-mvc-cascading-drop-down-lists/</link>
		<comments>http://hobbscene.com/2011/10/22/asp-net-mvc-cascading-drop-down-lists/#comments</comments>
		<pubDate>Sat, 22 Oct 2011 10:46:50 +0000</pubDate>
		<dc:creator>Tim Hobbs</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://hobbscene.com/?p=176</guid>
		<description><![CDATA[Found this great post on how to create cascading drop downs in ASP.NET MVC. I created a page for looking up shipping rates by carrier, weight and zip code. For my particular usage, I had 2 lists: Carrier and ShipMethod. I wanted the cascading list to be disabled when the initial list selection had yet [...]]]></description>
			<content:encoded><![CDATA[<p>Found <a href="http://geekswithblogs.net/ranganh/archive/2011/06/14/cascading-dropdownlist-in-asp.net-mvc-3-using-jquery.aspx" target="_blank">this great post</a> on how to create cascading drop downs in ASP.NET MVC.</p>
<p>I created a page for looking up shipping rates by carrier, weight and zip code. For my particular usage, I had 2 lists: Carrier and ShipMethod. I wanted the cascading list to be disabled when the initial list selection had yet to be made. I created functions to populate the target list as well as enable/disable the target list. I made the js into a reusable Razor helper which should allow me to use it anywhere I need this functionality.</p>
<p>Here is the helper code:</p>
<pre class="brush: csharp; title: ; notranslate">
@helper DynamicDropDowns() {
&lt;script type=&quot;text/javascript&quot;&gt;
    function listChanged($list, $target, url) {
        var listId = $list.val();
        if (listId == &quot;&quot;) { // User selected first option, so clear and disable the list
            $target.empty();
            enableList($target, false);
            return;
        }
        $.getJSON(url, { id: listId }, function (data) {
            $target.empty(); // Clear the list
            $.each(data, function (idx, item) { // Add the data
                $target.append($(&quot;&lt;option/&gt;&quot;,
                {
                    value: item.Value,
                    text: item.Text
                }));
            });
            enableList($target, true); // Enable the list
        });
    }

    function enableList($list, enabled) {
        $list.attr(&quot;disabled&quot;, enabled ? null : &quot;disabled&quot;);
    }
&lt;/script&gt;
}
</pre>
<p><a href="https://gist.github.com/1305873" target="_blank">Gist</a></p>
<p>And here it is in action:</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
    $(function () {
        var $carrier = $(&quot;#Carrier&quot;);
        var $ship = $(&quot;#ShipMethod&quot;);
        enableList($ship, false);
        $carrier.change(function () {
            listChanged($(this), $ship, &quot;/Tools/GetShipMethodsByCarrier&quot;);
        });
    });
&lt;/script&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hobbscene.com/2011/10/22/asp-net-mvc-cascading-drop-down-lists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NService Bus</title>
		<link>http://hobbscene.com/2011/10/03/nservice-bus/</link>
		<comments>http://hobbscene.com/2011/10/03/nservice-bus/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 20:42:58 +0000</pubDate>
		<dc:creator>Tim Hobbs</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[NServiceBus]]></category>

		<guid isPermaLink="false">http://hobbscene.com/?p=174</guid>
		<description><![CDATA[We were looking at updating our web site to talk to an AS400 system that would need to go down regularly. Really, regardless of if our system goes down regularly or not implementing a service bus is the way to go, and this looks like the perfect tool for the job. Site link: NServiceBus]]></description>
			<content:encoded><![CDATA[<p>We were looking at updating our web site to talk to an AS400 system that would need to go down regularly. Really, regardless of if our system goes down regularly or not implementing a service bus is the way to go, and this looks like the perfect tool for the job.</p>
<p>Site link: <a href="http://www.nservicebus.com/" target="_blank">NServiceBus</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hobbscene.com/2011/10/03/nservice-bus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SignalR</title>
		<link>http://hobbscene.com/2011/10/03/signalr/</link>
		<comments>http://hobbscene.com/2011/10/03/signalr/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 20:37:08 +0000</pubDate>
		<dc:creator>Tim Hobbs</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[async]]></category>
		<category><![CDATA[SignalR]]></category>

		<guid isPermaLink="false">http://hobbscene.com/?p=171</guid>
		<description><![CDATA[I first heard about SignalR on Scott Hanselman&#8217;s blog. He showed an example webchat app in 12 lines of code. It looked pretty cool, but I did not make the time to take a deeper look. I was just watching the Tekpub Full Throttle episode with Ayende and that led me to Ayande&#8217;s blog, where [...]]]></description>
			<content:encoded><![CDATA[<p>I first heard about SignalR on <a href="http://www.hanselman.com/blog/AsynchronousScalableWebApplicationsWithRealtimePersistentLongrunningConnectionsWithSignalR.aspx" target="_blank">Scott Hanselman&#8217;s blog</a>. He showed an example webchat app in 12 lines of code. It looked pretty cool, but I did not make the time to take a deeper look.</p>
<p>I was just watching the <a href="http://tekpub.com/view/ft_triage_oren/1" target="_blank">Tekpub Full Throttle episode with Ayende</a> and that led me to Ayande&#8217;s blog, where I saw his post &#8220;<a href="http://ayende.com/blog/95233/how-signalr-killed-ravenmq">How SignalR killed RavenMQ</a>.&#8221;</p>
<p>So, here is my link to the Github project. My personal reminder to make the time to check out SignalR.</p>
<p>Project Github link: <a href="https://github.com/SignalR/SignalR" target="_blank">SignalR</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hobbscene.com/2011/10/03/signalr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to copy items from one DropDownList to another</title>
		<link>http://hobbscene.com/2011/09/20/how-to-copy-items-from-one-dropdownlist-to-another/</link>
		<comments>http://hobbscene.com/2011/09/20/how-to-copy-items-from-one-dropdownlist-to-another/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 02:55:19 +0000</pubDate>
		<dc:creator>Tim Hobbs</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Controls]]></category>
		<category><![CDATA[LINQ]]></category>

		<guid isPermaLink="false">http://hobbscene.com/?p=161</guid>
		<description><![CDATA[Thank you, StackOverflow.]]></description>
			<content:encoded><![CDATA[<pre class="brush: csharp; title: ; notranslate">
drpTypesCreateEdit.Items.AddRange(drpTypes.Items.OfType&lt;ListItem&gt;().ToArray());
</pre>
<p>Thank you, <a href="http://stackoverflow.com/questions/2667846/how-to-copy-items-from-one-dropdownlist-to-another">StackOverflow</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://hobbscene.com/2011/09/20/how-to-copy-items-from-one-dropdownlist-to-another/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

