<?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>Joe Stevens&#039; Blog &#187; C#</title>
	<atom:link href="http://www.joe-stevens.com/category/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joe-stevens.com</link>
	<description>Everything .NET and C#</description>
	<lastBuildDate>Sat, 21 Jan 2012 03:18:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>A MongoDB Tutorial using C# and ASP.NET MVC</title>
		<link>http://www.joe-stevens.com/2011/10/02/a-mongodb-tutorial-using-c-and-asp-net-mvc/</link>
		<comments>http://www.joe-stevens.com/2011/10/02/a-mongodb-tutorial-using-c-and-asp-net-mvc/#comments</comments>
		<pubDate>Sun, 02 Oct 2011 05:46:54 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=650</guid>
		<description><![CDATA[In this post I&#8217;m going to create a simple ASP.NET MVC website for a simple blog that uses MongoDB and the offical 10gen C# driver. MongoDB is no NOSQL database that stores information as Binary JSON (BSON) in documents. I have been working with it now for around 6 months on an enterprise application and [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2011/10/02/a-mongodb-tutorial-using-c-and-asp-net-mvc/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>ASP.NET MVC 2 client side validation for dynamic fields added with ajax</title>
		<link>http://www.joe-stevens.com/2011/07/24/asp-net-mvc-2-client-side-validation-for-dynamic-fields-added-with-ajax/</link>
		<comments>http://www.joe-stevens.com/2011/07/24/asp-net-mvc-2-client-side-validation-for-dynamic-fields-added-with-ajax/#comments</comments>
		<pubDate>Sat, 23 Jul 2011 23:43:10 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=639</guid>
		<description><![CDATA[It&#8217;s quite common to add fields to a form dynamically using ajax, for example you may have a list of phone numbers for a user, and they could have many different phone numbers. Using MVC you can easily add fields to a form by making an ajax call to an action that returns the rendered [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2011/07/24/asp-net-mvc-2-client-side-validation-for-dynamic-fields-added-with-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extract content from HTML and split words into an array using C#</title>
		<link>http://www.joe-stevens.com/2011/07/10/extract-content-from-html-and-split-words-into-an-array-using-c/</link>
		<comments>http://www.joe-stevens.com/2011/07/10/extract-content-from-html-and-split-words-into-an-array-using-c/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 02:24:23 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=630</guid>
		<description><![CDATA[The other day I was messing around with Full Text Search with MongoDB (which I&#8217;ll probably write about in the future), and wanted to take some HTML content and remove all the HTML tags, extract the actual content, then split up the words into an array. I wrote the following extension method that seems to [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2011/07/10/extract-content-from-html-and-split-words-into-an-array-using-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Model Binding MongoDB ObjectId with ASP.NET MVC</title>
		<link>http://www.joe-stevens.com/2011/06/12/model-binding-mongodb-objectid-with-asp-net-mvc/</link>
		<comments>http://www.joe-stevens.com/2011/06/12/model-binding-mongodb-objectid-with-asp-net-mvc/#comments</comments>
		<pubDate>Sun, 12 Jun 2011 06:27:57 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=626</guid>
		<description><![CDATA[If you&#8217;re using the MongoDB C# driver with ASP.NET MVC and have a property of type ObjectId in your model you will get the following error when trying to bind back to the model. The parameter conversion from type &#8216;System.String&#8217; to type &#8216;MongoDB.Bson.ObjectId&#8217; failed because no type converter can convert between these types. This can [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2011/06/12/model-binding-mongodb-objectid-with-asp-net-mvc/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Creating strongly typed wrappers around untyped dictionaries in ASP.NET using the Castle DictionaryAdapter</title>
		<link>http://www.joe-stevens.com/2011/06/09/creating-strongly-typed-wrappers-around-untyped-dictionaries-in-asp-net-using-the-castle-dictionaryadapter/</link>
		<comments>http://www.joe-stevens.com/2011/06/09/creating-strongly-typed-wrappers-around-untyped-dictionaries-in-asp-net-using-the-castle-dictionaryadapter/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 08:02:20 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[IoC]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[AutoFac]]></category>
		<category><![CDATA[Castle]]></category>
		<category><![CDATA[DI]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=616</guid>
		<description><![CDATA[Often when writing web applications you find yourself writing strongly typed wrapper classes around untyped dictionaries, such as Session, QueryString or even Web.Config Application Settings. This is quite a tedious task, but using the Castle DictionaryAdapter this is all wrapped up nicely, and all you need to do is create an interface. Download source Lets [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2011/06/09/creating-strongly-typed-wrappers-around-untyped-dictionaries-in-asp-net-using-the-castle-dictionaryadapter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Editing and binding nested lists with ASP.NET MVC 2</title>
		<link>http://www.joe-stevens.com/2011/06/06/editing-and-binding-nested-lists-with-asp-net-mvc-2/</link>
		<comments>http://www.joe-stevens.com/2011/06/06/editing-and-binding-nested-lists-with-asp-net-mvc-2/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 00:36:28 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=541</guid>
		<description><![CDATA[Dynamically editing lists of data and binding back to the model with MVC is a little complicated as the id&#8217;s of the form elements need to all tie up for binding to succeed. Recently I had a model, which contained a list of an object, which in turn contained another nested list. Getting this to easily [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2011/06/06/editing-and-binding-nested-lists-with-asp-net-mvc-2/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>How to register and get all instances that implement an interface using Autofac</title>
		<link>http://www.joe-stevens.com/2011/05/30/how-to-register-and-get-all-instances-that-implement-an-interface-using-autofac/</link>
		<comments>http://www.joe-stevens.com/2011/05/30/how-to-register-and-get-all-instances-that-implement-an-interface-using-autofac/#comments</comments>
		<pubDate>Mon, 30 May 2011 04:50:36 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[AutoFac]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=592</guid>
		<description><![CDATA[I&#8217;ve just started using Autofac, where I&#8217;ve previously used Ninject and StructureMap. UPDATE (09/06/2001): Although this post is about registering all instances that implement a specific interface, my reason for doing so was to create a bootstrapper task. I&#8217;ve recently found AutoFac has an IStartable interface which basically does the same thing. I have an [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2011/05/30/how-to-register-and-get-all-instances-that-implement-an-interface-using-autofac/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ASP.NET MVC simple server-side ajax paging using jQuery</title>
		<link>http://www.joe-stevens.com/2011/05/30/asp-net-mvc-simple-server-side-ajax-paging-using-jquery/</link>
		<comments>http://www.joe-stevens.com/2011/05/30/asp-net-mvc-simple-server-side-ajax-paging-using-jquery/#comments</comments>
		<pubDate>Mon, 30 May 2011 00:12:18 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[code first]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=579</guid>
		<description><![CDATA[It&#8217;s always important to page your data on the server side so that you are only hitting the database to get the page you currently need, rather than getting all the results and paging on the client. In this post I&#8217;ll explain how to perform simple ajax paging on the server side using ASP.NET MVC [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2011/05/30/asp-net-mvc-simple-server-side-ajax-paging-using-jquery/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>ASP.NET MVC authorize attribute using action parameters with the ActionFilterAttribute</title>
		<link>http://www.joe-stevens.com/2010/08/19/asp-net-mvc-authorize-attribute-using-action-parameters-with-the-actionfilterattribute/</link>
		<comments>http://www.joe-stevens.com/2010/08/19/asp-net-mvc-authorize-attribute-using-action-parameters-with-the-actionfilterattribute/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 04:24:29 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[authorize]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=525</guid>
		<description><![CDATA[ASP.NET MVC provides the AuthorizeAttribute which ensures there is a logged in user. You can also provide parameters to restrict actions or controllers to only be accessible to certain roles or users. You can also create your own custom authorization attribute derived from AuthorizeAttribute to provide any custom authorization. In addition to this general authorization [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2010/08/19/asp-net-mvc-authorize-attribute-using-action-parameters-with-the-actionfilterattribute/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linq lambda expression IEqualityComparer for IEnumerable.Distinct and Except</title>
		<link>http://www.joe-stevens.com/2010/08/17/linq-lambda-expression-iequalitycomparer-for-ienumerable-distinct-and-except/</link>
		<comments>http://www.joe-stevens.com/2010/08/17/linq-lambda-expression-iequalitycomparer-for-ienumerable-distinct-and-except/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 12:24:07 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Linq]]></category>
		<category><![CDATA[extension method]]></category>
		<category><![CDATA[lambda]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=519</guid>
		<description><![CDATA[One of the things that annoys me with the IEnumerable.Distinct method is that it has no overload allowing you to give a lambda expression to specify a particular property to perform the distinction, you have to give an IEqualityComparer. I did a quick Google search and found this post. The guy here provides the following [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2010/08/17/linq-lambda-expression-iequalitycomparer-for-ienumerable-distinct-and-except/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ASP.NET MVC Textbox with characters remaining HtmlHelper extension method</title>
		<link>http://www.joe-stevens.com/2010/08/14/asp-net-mvc-textbox-with-characters-remaining-htmlhelper-extension-method/</link>
		<comments>http://www.joe-stevens.com/2010/08/14/asp-net-mvc-textbox-with-characters-remaining-htmlhelper-extension-method/#comments</comments>
		<pubDate>Sat, 14 Aug 2010 01:43:25 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[extension method]]></category>
		<category><![CDATA[htmlhelper]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=509</guid>
		<description><![CDATA[Here is a couple of HtmlHelper extension methods, CharactersRemainingTextBoxFor and CharactersRemainingTextAreaFor which render a textbox/textarea with a span tag that displays the number of characters remaining.  They also include the JavaScript to make this work, and to limit the number of characters entered in the textarea. The maximum limit comes from the model by using [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2010/08/14/asp-net-mvc-textbox-with-characters-remaining-htmlhelper-extension-method/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to get the time difference between two DateTimes using C#</title>
		<link>http://www.joe-stevens.com/2010/06/25/how-to-get-the-time-difference-between-two-datetimes-using-c/</link>
		<comments>http://www.joe-stevens.com/2010/06/25/how-to-get-the-time-difference-between-two-datetimes-using-c/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 03:57:43 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[datetime]]></category>
		<category><![CDATA[TimeSpan]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=491</guid>
		<description><![CDATA[Here&#8217;s a quick an easy way to show the time difference between two DateTime objects using C#. The DateTime structure has an overridden subtract operator which return a TimeSpan object when subtracting two DateTimes: You can then use this TimeSpan to get the amount of time between each DateTime: In the above example I&#8217;m comparing [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2010/06/25/how-to-get-the-time-difference-between-two-datetimes-using-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert a comma separated string of numbers to an integer array using C#</title>
		<link>http://www.joe-stevens.com/2010/06/10/convert-a-comma-separated-string-of-numbers-to-an-integer-array-using-c/</link>
		<comments>http://www.joe-stevens.com/2010/06/10/convert-a-comma-separated-string-of-numbers-to-an-integer-array-using-c/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 05:51:35 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Linq]]></category>
		<category><![CDATA[Array]]></category>
		<category><![CDATA[CSV]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=487</guid>
		<description><![CDATA[Today I needed to convert a comma separated string of numbers in an integer array. Here is how you can do it in one line using Linq:]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2010/06/10/convert-a-comma-separated-string-of-numbers-to-an-integer-array-using-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Creating a Composite Server Control with ASP.NET</title>
		<link>http://www.joe-stevens.com/2010/04/16/creating-a-composite-server-control-with-asp-net/</link>
		<comments>http://www.joe-stevens.com/2010/04/16/creating-a-composite-server-control-with-asp-net/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 05:31:22 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Composte Control]]></category>
		<category><![CDATA[Custom Control]]></category>
		<category><![CDATA[Server Control]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=465</guid>
		<description><![CDATA[Download source When creating web applications with ASP.NET developers will usually create User Controls or Custom Server Controls. User Controls have the ASCX extension and allow developers to group together ASP.NET controls and functionality into a reusable control. Custom Controls are a bit more complex and require the developer to define the html that the [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2010/04/16/creating-a-composite-server-control-with-asp-net/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Linq to XML Tutorial</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/</link>
		<comments>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 02:42:09 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Linq]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[linq to xml]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377</guid>
		<description><![CDATA[Download source This is an introduction to Linq to XML showing how to read, insert, update and delete from an XML file. First of all lets look at the XML file I will be using: As you can see it&#8217;s a very simple list of customers.  In my project I have also created a Customer [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>Using jQuery to make ajax calls to an ASMX web service using ASP.NET</title>
		<link>http://www.joe-stevens.com/2010/01/04/using-jquery-to-make-ajax-calls-to-an-asmx-web-service-using-asp-net/</link>
		<comments>http://www.joe-stevens.com/2010/01/04/using-jquery-to-make-ajax-calls-to-an-asmx-web-service-using-asp-net/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 06:02:45 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=351</guid>
		<description><![CDATA[Download source Making ajax calls to an ASP.NET web service using jQuery is too easy.  In this post I&#8217;ll explain how to do it! Start by creating a new web project and adding a new ASMX web service: Open the new web service and uncomment the following line to allow the web service to be called [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2010/01/04/using-jquery-to-make-ajax-calls-to-an-asmx-web-service-using-asp-net/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>JSON Serialization using the DataContractJsonSerializer and C#</title>
		<link>http://www.joe-stevens.com/2009/12/29/json-serialization-using-the-datacontractjsonserializer-and-c/</link>
		<comments>http://www.joe-stevens.com/2009/12/29/json-serialization-using-the-datacontractjsonserializer-and-c/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 05:25:05 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[deserialization]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[serialization]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=336</guid>
		<description><![CDATA[Download source code Previously I&#8217;d done JSON serialization using the JavaScriptSerializer which is part of AJAX Extensions 1.0, but this is now obsolete. .NET 3.5 introduced the DataContractJsonSerializer class.  The class sits in the System.Runtime.Serialization.Json namespace which is curiously hidden away in the System.ServiceModel.Web assembly. The DataContractJsonSerializer can serialize a class that contains the Serializable [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2009/12/29/json-serialization-using-the-datacontractjsonserializer-and-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Escape curly braces when using String.Format or StringBuilder.AppendFormat</title>
		<link>http://www.joe-stevens.com/2009/12/29/escape-curly-braces-when-using-string-format-or-stringbuilder-appendformat/</link>
		<comments>http://www.joe-stevens.com/2009/12/29/escape-curly-braces-when-using-string-format-or-stringbuilder-appendformat/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 22:44:53 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[stringbuilder]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=330</guid>
		<description><![CDATA[I was using the StringBuilder to create a JSON string which included an array and therefore curly braces, but I got an exception as curly braces are used to define the parameters for the format. At first I tried adding a backslash which is used to escape the quotation mark but this didn&#8217;t work, so I tried the double character [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2009/12/29/escape-curly-braces-when-using-string-format-or-stringbuilder-appendformat/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Linq to SQL Tutorial &#8211; Linq to SQL Generic Framework using reflection</title>
		<link>http://www.joe-stevens.com/2009/12/28/linq-to-sql-generic-framework-using-reflection/</link>
		<comments>http://www.joe-stevens.com/2009/12/28/linq-to-sql-generic-framework-using-reflection/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 03:01:11 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Linq]]></category>
		<category><![CDATA[generic]]></category>
		<category><![CDATA[Linq To SQL]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/2009/12/28/linq-to-sql-generic-framework-using-reflection/</guid>
		<description><![CDATA[Download source code In a previous post; Base Repository/Business Logic wrapper, I talked about a basic Linq to SQL Framework I created. I then extended it in my ObjectDataSource binding with paging and sorting post to show how to use it with the ObjectDataSource. The problem was that although it worked quite nicely for getting [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2009/12/28/linq-to-sql-generic-framework-using-reflection/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linq to SQL Tutorial &#8211; Using Load Options to preload data immediately without lazy loading</title>
		<link>http://www.joe-stevens.com/2009/11/23/linq-to-sql-using-load-options-to-preload-data-immediately-without-lazy-loading/</link>
		<comments>http://www.joe-stevens.com/2009/11/23/linq-to-sql-using-load-options-to-preload-data-immediately-without-lazy-loading/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 09:49:27 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Linq]]></category>
		<category><![CDATA[Linq To SQL]]></category>
		<category><![CDATA[load options]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=304</guid>
		<description><![CDATA[Download source With Linq to SQL lazy loading is used by default. That means that if one object contains another object, the child object will only be loaded when first accessing it. Using Load Options it is possible to tell Linq to SQL to also load the child object at the same time as loading [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2009/11/23/linq-to-sql-using-load-options-to-preload-data-immediately-without-lazy-loading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET FormView SetFocus</title>
		<link>http://www.joe-stevens.com/2009/11/20/asp-net-formview-setfocus/</link>
		<comments>http://www.joe-stevens.com/2009/11/20/asp-net-formview-setfocus/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 02:31:35 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[focus]]></category>
		<category><![CDATA[formview]]></category>
		<category><![CDATA[setfocus]]></category>
		<category><![CDATA[textbox]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=287</guid>
		<description><![CDATA[I have FormView and on changing to Edit mode I wanted to set focus to the first textbox. I thought I&#8217;d do this hooking into the ModeChanged event but this doesn&#8217;t work as the textbox hasn&#8217;t been rendered. I then tried overriding the Render method and setting the focus after rendering; at this point the [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2009/11/20/asp-net-formview-setfocus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Read only Automatic Properties in C#</title>
		<link>http://www.joe-stevens.com/2009/11/17/read-only-automatic-properties-in-c/</link>
		<comments>http://www.joe-stevens.com/2009/11/17/read-only-automatic-properties-in-c/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 02:45:14 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[automatic properties]]></category>
		<category><![CDATA[automatic property]]></category>
		<category><![CDATA[read only]]></category>
		<category><![CDATA[readonly]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=285</guid>
		<description><![CDATA[Automatic Properties were a nice addition to C# 3 and I use them all the time. A lot of people may already know this but somehow I only found out this week; you can create a read only automatic property simply by adding the &#8216;private&#8217; keyword before &#8216;set&#8217;:]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2009/11/17/read-only-automatic-properties-in-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Convert file size bytes to megabyte/gigabyte string using C#</title>
		<link>http://www.joe-stevens.com/2009/10/21/convert-file-size-bytes-to-megabytegigabyte-string-using-c/</link>
		<comments>http://www.joe-stevens.com/2009/10/21/convert-file-size-bytes-to-megabytegigabyte-string-using-c/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 04:32:27 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[bytes]]></category>
		<category><![CDATA[extension method]]></category>
		<category><![CDATA[file size]]></category>
		<category><![CDATA[gigabytes]]></category>
		<category><![CDATA[int32]]></category>
		<category><![CDATA[kilobytes]]></category>
		<category><![CDATA[megabytes]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=270</guid>
		<description><![CDATA[I feel like I haven&#8217;t posted in ages. Have been busy changing job and moving house but I have a list of things I want to blog about soon. Recently I needed to convert a number of bytes to a readable string that represents the number of kilobytes, megabytes or gigabytes. I created an extension [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2009/10/21/convert-file-size-bytes-to-megabytegigabyte-string-using-c/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Linq Tutorial &#8211; Using the Enumerable.Any extension method</title>
		<link>http://www.joe-stevens.com/2009/09/21/linq-using-the-enumerable-any-extension-method/</link>
		<comments>http://www.joe-stevens.com/2009/09/21/linq-using-the-enumerable-any-extension-method/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 00:18:21 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Linq]]></category>
		<category><![CDATA[all]]></category>
		<category><![CDATA[enumerable]]></category>
		<category><![CDATA[enumerable.all]]></category>
		<category><![CDATA[extension methods]]></category>
		<category><![CDATA[Linq To SQL]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=266</guid>
		<description><![CDATA[Consider the following: Using Linq I want to select all the roles for a particular user. I could create a query like this: This simply creates the following SQL: Alternatively I could use the Any extension method. The Any method returns a bool which indicates if any of the UserRoles meet the lambda expression; in [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2009/09/21/linq-using-the-enumerable-any-extension-method/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linq to SQL &#8211; Using EntitySet.Remove to delete records</title>
		<link>http://www.joe-stevens.com/2009/09/18/linq-to-sql-using-entityset-remove-to-delete-records/</link>
		<comments>http://www.joe-stevens.com/2009/09/18/linq-to-sql-using-entityset-remove-to-delete-records/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 04:04:22 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Linq]]></category>
		<category><![CDATA[DeleteOnNull]]></category>
		<category><![CDATA[DMBL]]></category>
		<category><![CDATA[EntitySet]]></category>
		<category><![CDATA[EntitySet.Remove]]></category>
		<category><![CDATA[Linq To SQL]]></category>

		<guid isPermaLink="false">http://www.joe-stevens.com/?p=256</guid>
		<description><![CDATA[Download source Quite often you have two tables with a linker table which causes Linq to SQL to generate an EntitySet of the related records in each table. Take the following example: Here, the User entity will have an EntitySet called UserRoles containing the Role entities that the user is part of. When I want to remove a [...]]]></description>
		<wfw:commentRss>http://www.joe-stevens.com/2009/09/18/linq-to-sql-using-entityset-remove-to-delete-records/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

