<?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/"
	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>CJ</title>
	<atom:link href="http://claytonj.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://claytonj.wordpress.com</link>
	<description>The circle of life - ** .Net - Training - MOSS **</description>
	<lastBuildDate>Sat, 21 Jan 2012 00:27:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='claytonj.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>CJ</title>
		<link>http://claytonj.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://claytonj.wordpress.com/osd.xml" title="CJ" />
	<atom:link rel='hub' href='http://claytonj.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SharePoint 2010 My Sites</title>
		<link>http://claytonj.wordpress.com/2011/04/11/sharepoint-2010-my-sites/</link>
		<comments>http://claytonj.wordpress.com/2011/04/11/sharepoint-2010-my-sites/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 06:28:35 +0000</pubDate>
		<dc:creator>Clayton James</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/?p=519</guid>
		<description><![CDATA[There are two main area associated with My Sites. My Site Host Site Collection - Shared by all users &#8211; My Profile link &#8211; First site collection created in My Site web application My Site Personal Site Collection &#8211; Personal site collection &#8211; created when users click on the My Profile link &#8211; subsequent site collections in the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=519&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are two main area associated with My Sites.</p>
<ol>
<li>My Site Host Site Collection - Shared by all users &#8211; My Profile link &#8211; First site collection created in My Site web application</li>
<li>My Site Personal Site Collection &#8211; Personal site collection &#8211; created when users click on the My Profile link &#8211; subsequent site collections in the My Site web application &#8211; can disable</li>
</ol>
<p>The <strong>My Site Host Site Collection</strong> is easily customised and branded as this site collection it is shared by all users. There is a great article explaining it here.<br />
<a href="http://blogs.msdn.com/b/spsocial/archive/2010/04/08/customizing-my-sites-in-microsoft-sharepoint-2010.aspx" target="_blank">http://blogs.msdn.com/b/spsocial/archive/2010/04/08/customizing-my-sites-in-microsoft-sharepoint-2010.aspx</a></p>
<p>The <strong>My Site Personal Site Collection</strong> is created for each individual user thus customisation is not so easy. A developer is required here as the solution here is known as Feature Stapling.</p>
<p>Feature Stapling allows a Feature to be called when a Site Template is called during the provisioning process. This means you can run some code to change master pages, apply custom security, etc&#8230; to the site during the provisioning process. So when the site is displayed to the user all of the changes you implemented in your Feature has been applied.</p>
<p>I have just finished implementing a solution for a client which I am happy about as Personal Sites are now branded and users are not site collection administrators.</p>
<p>This post while written for SharePoint 2007 is still very relevant for SharePoint 2010<br />
<a href="http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?PageType=4&amp;ListId={72C1C85B-1D2D-4A4A-90DE-CA74A7808184}&amp;pID=794">http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?PageType=4&amp;ListId={72C1C85B-1D2D-4A4A-90DE-CA74A7808184}&amp;pID=794</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/519/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/519/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/519/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/519/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/claytonj.wordpress.com/519/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/claytonj.wordpress.com/519/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/claytonj.wordpress.com/519/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/claytonj.wordpress.com/519/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/519/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/519/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/519/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/519/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/519/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/519/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=519&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2011/04/11/sharepoint-2010-my-sites/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>
	</item>
		<item>
		<title>Remove Reply Text in SharePoint Discussion Board</title>
		<link>http://claytonj.wordpress.com/2010/12/09/remove-reply-text-in-sharepoint-discussion-board/</link>
		<comments>http://claytonj.wordpress.com/2010/12/09/remove-reply-text-in-sharepoint-discussion-board/#comments</comments>
		<pubDate>Thu, 09 Dec 2010 03:30:03 +0000</pubDate>
		<dc:creator>Clayton James</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/2010/12/09/remove-reply-text-in-sharepoint-discussion-board/</guid>
		<description><![CDATA[Including the reply text in a SharePoint 2007 discussion board I think makes viewing and participating in discussions more clearer. The following JavaScript will remove the reply (previous post) text. var d = document.getElementsByTagName(“textarea”); for( var i=0; i &#60; d.length; ++i){ if( d[i].id.indexOf(‘TextField’) != 0 ){ d[i].value = ” “; } }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=517&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Including the reply text in a SharePoint 2007 discussion board I think makes viewing and participating in discussions more clearer.</p>
<p>The following JavaScript will remove the reply (previous post) text.</p>
<p>var d = document.getElementsByTagName(“textarea”);<br />
for( var i=0; i &lt; d.length; ++i){<br />
if( d[i].id.indexOf(‘TextField’) != 0 ){</p>
<p>d[i].value = ” “;</p>
<p>}<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/claytonj.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/claytonj.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/claytonj.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/claytonj.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/517/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=517&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2010/12/09/remove-reply-text-in-sharepoint-discussion-board/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting up SharePoint to use the ASP.Net Charting Control</title>
		<link>http://claytonj.wordpress.com/2010/10/27/setting-up-sharepoint-to-use-the-asp-net-charting-control/</link>
		<comments>http://claytonj.wordpress.com/2010/10/27/setting-up-sharepoint-to-use-the-asp-net-charting-control/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 05:54:07 +0000</pubDate>
		<dc:creator>Clayton James</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/?p=514</guid>
		<description><![CDATA[Scott Gu discusses the very cool ASP.Net Chart Control and provides links to download the required components. If you are developing custom applications in SharePoint 2007 are are interested in displaying your data in a graphical format (like this) then you will need to complete some configuration first. Note: Make sure you download and install [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=514&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Scott Gu discusses the very cool <a href="http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx" target="_blank">ASP.Net Chart Control</a> and provides links to download the required components.</p>
<p>If you are developing custom applications in SharePoint 2007 are are interested in displaying your data in a graphical format (<a href="http://claytonj.wordpress.com/2010/10/19/sharepoint-resource-capacity-planner-update/" target="_blank">like this</a>) then you will need to complete some configuration first.</p>
<p>Note: Make sure you download and install the Sample Applications as this has many great examples.</p>
<p>To setup the Charting in SharePoint you will need to perform the following:</p>
<ol>
<li>Download      and install MSChart.exe on the SharePoint Server</li>
<li>If      you are in a development environment then also install      MSChart_VisualStudioAddOn.exe</li>
<li>Add      Reference to the System.Web.DataVisulization.dll</li>
<li>Update      the SharePoint web.config file
<ol>
<li>&lt;handlers…section<br />
&lt;remove name=&#8221;ChartImageHandler&#8221;/&gt;<br />
&lt;add name=&#8221;ChartImageHandler&#8221;       preCondition=&#8221;integratedMode&#8221; verb=&#8221;GET,HEAD&#8221;       path=&#8221;ChartImg.axd&#8221;       type=&#8221;System.Web.UI.DataVisualization.Charting.ChartHttpHandler,       System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral,       PublicKeyToken=31bf3856ad364e35&#8243;/&gt;</li>
<li>&lt;appSettings…section<br />
&lt;add key=&#8221;ChartImageHandler&#8221;       value=&#8221;Storage=file;Timeout=20;Url=/_layouts/Images/MicrosoftChartControls/;&#8221;/&gt;</li>
<li>&lt;controls…section<br />
&lt;add tagPrefix=&#8221;asp&#8221; namespace=&#8221;System.Web.UI.DataVisualization.Charting&#8221;       assembly=&#8221;System.Web.DataVisualization, Version=3.5.0.0,       Culture=neutral, PublicKeyToken=31bf3856ad364e35&#8243;/&gt;</li>
<li>&lt;httpHandlers…section<br />
&lt;add path=&#8221;ChartImg.axd&#8221; verb=&#8221;GET,HEAD&#8221;       type=&#8221;System.Web.UI.DataVisualization.Charting.ChartHttpHandler,       System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral,       PublicKeyToken=31bf3856ad364e35&#8243; validate=&#8221;false&#8221;/&gt;</li>
<li>&lt;tagPrefix&#8230;section<br />
&lt;add tagPrefix=&#8221;asp&#8221;       namespace=&#8221;System.Web.UI.DataVisualization.Charting&#8221;       assembly=&#8221;System.Web.DataVisualization, Version=3.5.0.0,       Culture=neutral, PublicKeyToken=31bf3856ad364e35&#8243; /&gt;</li>
</ol>
<li>Create      the _layouts/Images/MicrosoftChartControls folder and provide higher      permissions so everyone can modify</li>
<li>Add POST to the httpHandlers ChartImg.axd to remove the error <em>“Error executing child request for ChartImg.axd”</em></li>
</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/claytonj.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/claytonj.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/claytonj.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/claytonj.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/514/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/514/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/514/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=514&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2010/10/27/setting-up-sharepoint-to-use-the-asp-net-charting-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint Resource Capacity Planner &#8211; Update</title>
		<link>http://claytonj.wordpress.com/2010/10/19/sharepoint-resource-capacity-planner-update/</link>
		<comments>http://claytonj.wordpress.com/2010/10/19/sharepoint-resource-capacity-planner-update/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 01:24:47 +0000</pubDate>
		<dc:creator>Clayton James</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/?p=503</guid>
		<description><![CDATA[This application has gone live and I have added some nice functionality since the previous blog post: All information is stored inside SharePoint lists The Unavailable section is automatically updated from the SharePoint Leave Calendar (removing weekend hours) Project capacity is selected from a dropdown list using a custom field control. This control is populated from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=503&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This application has gone live and I have added some nice functionality since the previous blog post:</p>
<ul>
<li>All information is stored inside SharePoint lists</li>
<li>The Unavailable section is automatically updated from the SharePoint Leave Calendar (removing weekend hours)</li>
<li>Project capacity is selected from a dropdown list using a custom field control. This control is populated from the Projects site which lives in another web application</li>
<li>Heatmap functionality based on department or individual teams</li>
</ul>
<p>Here are some screen shots:</p>
<p><span style="text-decoration:underline;"><strong>Capacity Planner Image</strong></span></p>
<p><a href="http://claytonj.files.wordpress.com/2010/10/capacitymanagement.png"><img class="alignnone size-full wp-image-506" title="CapacityManagement" src="http://claytonj.files.wordpress.com/2010/10/capacitymanagement.png" alt="Capacity Management" width="1024" height="663" /></a></p>
<p><span style="text-decoration:underline;"><strong>Heat Map Image</strong></span></p>
<p><a href="http://claytonj.files.wordpress.com/2010/10/heatmap.png"><img class="alignnone size-full wp-image-507" title="HeatMap" src="http://claytonj.files.wordpress.com/2010/10/heatmap.png" alt="Heat Map Image" width="1024" height="256" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/claytonj.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/claytonj.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/claytonj.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/claytonj.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/503/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/503/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/503/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=503&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2010/10/19/sharepoint-resource-capacity-planner-update/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>

		<media:content url="http://claytonj.files.wordpress.com/2010/10/capacitymanagement.png" medium="image">
			<media:title type="html">CapacityManagement</media:title>
		</media:content>

		<media:content url="http://claytonj.files.wordpress.com/2010/10/heatmap.png" medium="image">
			<media:title type="html">HeatMap</media:title>
		</media:content>
	</item>
		<item>
		<title>Retreive SharePoint SPFieldChoice values</title>
		<link>http://claytonj.wordpress.com/2010/09/28/retreive-sharepoint-spfieldchoice-values/</link>
		<comments>http://claytonj.wordpress.com/2010/09/28/retreive-sharepoint-spfieldchoice-values/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 03:59:59 +0000</pubDate>
		<dc:creator>Clayton James</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/?p=500</guid>
		<description><![CDATA[If you ever wanted to retrieve a collection of SPFieldChoice values then you can use the following code: public static StringCollection GetEventCategoryChoices(SPWeb web)   {    SPList leaveList = web.Lists[LeaveCalendar.ListName];    return ((SPFieldChoice)leaveList.Fields[Fields.EVENT_CATEGORY]).Choices;   }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=500&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#000000;">If you ever wanted to retrieve a collection of SPFieldChoice values then you can use the following code:</span></p>
<p><span style="color:#0000ff;">public static</span> <span style="color:#008000;"><span style="color:#008080;">StringCollection</span> </span>GetEventCategoryChoices(<span style="color:#008080;">SPWeb </span>web)<br />
  {<br />
   <span style="color:#008080;">SPList</span> leaveList = web.Lists[<span style="color:#008080;">LeaveCalendar</span>.ListName];<br />
   <span style="color:#008080;">return</span> ((<span style="color:#008080;">SPFieldChoice</span>)leaveList.Fields[<span style="color:#008080;">Fields</span>.EVENT_CATEGORY]).Choices;<br />
  }</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/claytonj.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/claytonj.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/claytonj.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/claytonj.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/500/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/500/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=500&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2010/09/28/retreive-sharepoint-spfieldchoice-values/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>
	</item>
		<item>
		<title>Enum value with spaces c#</title>
		<link>http://claytonj.wordpress.com/2010/09/08/enum-value-with-spaces-c/</link>
		<comments>http://claytonj.wordpress.com/2010/09/08/enum-value-with-spaces-c/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 04:25:12 +0000</pubDate>
		<dc:creator>Clayton James</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/?p=497</guid>
		<description><![CDATA[Have you ever wanted to display a friendly Enum name that included spaces. C# doesn&#8217;t allow spaces in Enum&#8217;s, just like variables. However, thanks to c# extension methods we can create a new method that returns the Description Attribute. Apply descriptions which may be different to the enum value. Notice the space. public enum WorkType [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=497&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to display a friendly Enum name that included spaces.</p>
<p>C# doesn&#8217;t allow spaces in Enum&#8217;s, just like variables. However, thanks to c# extension methods we can create a new method that returns the Description Attribute.</p>
<p>Apply descriptions which may be different to the enum value. Notice the space.<br />
public enum WorkType</p>
<div id="_mcePaste">{</div>
<div id="_mcePaste">[Description("Service Delivery")]</div>
<div id="_mcePaste">ServiceDelivery,</div>
<div id="_mcePaste">Project,</div>
<div id="_mcePaste">Unavailable</div>
<div id="_mcePaste">}</div>
<p>Create the extension method<br />
//used to get the description from enum fields<br />
<span style="white-space:pre;"> </span>public static string GetDescription(this Enum value)<br />
<span style="white-space:pre;"> </span>{<br />
<span style="white-space:pre;"> </span>Type type = value.GetType();<br />
<span style="white-space:pre;"> </span>string name = Enum.GetName(type, value);<span style="white-space:pre;"> </span>if (name != null)<br />
<span style="white-space:pre;"> </span>{<br />
<span style="white-space:pre;"> </span>FieldInfo field = type.GetField(name);<br />
<span style="white-space:pre;"> </span>if (field != null)<br />
<span style="white-space:pre;"> </span>{<br />
<span style="white-space:pre;"> </span>DescriptionAttribute attr =<br />
<span style="white-space:pre;"> </span> Attribute.GetCustomAttribute(field,<br />
<span style="white-space:pre;"> </span> typeof(DescriptionAttribute)) as DescriptionAttribute;<br />
<span style="white-space:pre;"> </span>if (attr != null)<br />
<span style="white-space:pre;"> </span>{<br />
<span style="white-space:pre;"> </span>return attr.Description;<br />
<span style="white-space:pre;"> </span>}<br />
<span style="white-space:pre;"> </span>}<br />
<span style="white-space:pre;"> </span>}<br />
<span style="white-space:pre;"> </span>return null;<br />
<span style="white-space:pre;"> </span>}</p>
<p>Use it in your code<br />
string serivceDelivery = WorkType.ServiceDelivery.GetDescription();</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/claytonj.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/claytonj.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/claytonj.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/claytonj.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/497/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/497/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/497/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=497&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2010/09/08/enum-value-with-spaces-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint Resource Capacity Planner</title>
		<link>http://claytonj.wordpress.com/2010/09/07/sharepoint-resource-capacity-planner/</link>
		<comments>http://claytonj.wordpress.com/2010/09/07/sharepoint-resource-capacity-planner/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 10:22:37 +0000</pubDate>
		<dc:creator>Clayton James</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/?p=494</guid>
		<description><![CDATA[I have recently began work on developing a Capacity Planning tool for a government agency in SharePoint. This work is only a couple of days in but I thought I would share something I learn&#8217;t today in relation to charting/graphing. If you are running .net framework 3.5 sp1 and VS2008 then you are in luck [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=494&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have recently began work on developing a Capacity Planning tool for a government agency in SharePoint. This work is only a couple of days in but I thought I would share something I learn&#8217;t today in relation to charting/graphing.</p>
<p>If you are running .net framework 3.5 sp1 and VS2008 then you are in luck to use Microsoft&#8217;s free charting platform with Visual Studio add-ons and very complete sample project. This fantastic news and a great addition to business solutions.<br />
<em><a href="http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx" target="_blank">read about it here</a>: </em></p>
<p>Note: The Chart control is built into VS2010 so no configuration or installation is necessary.</p>
<p>The chart currently displays dummy data but will in the future graph the data that is inside the grid.</p>
<p><a href="http://claytonj.files.wordpress.com/2010/09/capacityshot.png"><img class="alignnone size-full wp-image-495" title="CapacityShot" src="http://claytonj.files.wordpress.com/2010/09/capacityshot.png" alt="Capacity Screen Shot" width="768" height="540" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/claytonj.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/claytonj.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/claytonj.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/claytonj.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/494/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=494&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2010/09/07/sharepoint-resource-capacity-planner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>

		<media:content url="http://claytonj.files.wordpress.com/2010/09/capacityshot.png" medium="image">
			<media:title type="html">CapacityShot</media:title>
		</media:content>
	</item>
		<item>
		<title>Moving Content Database between Farms</title>
		<link>http://claytonj.wordpress.com/2010/07/29/moving-content-database-between-farms/</link>
		<comments>http://claytonj.wordpress.com/2010/07/29/moving-content-database-between-farms/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 05:09:07 +0000</pubDate>
		<dc:creator>Clayton James</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/?p=490</guid>
		<description><![CDATA[I found this from a MFST guy and I am storing it for future reference http://blogs.msdn.com/b/toddca/archive/2009/01/30/preparetomove-away-from-running-this-command.aspx &#8220; I have done what you have said consistently several times without running PrepareToMove.   Create the new web apps in your DEV environment first making new databases for them.   Detach these 2 new content databases you created by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=490&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I found this from a MFST guy and I am storing it for future reference<br />
<a href="http://blogs.msdn.com/b/toddca/archive/2009/01/30/preparetomove-away-from-running-this-command.aspx">http://blogs.msdn.com/b/toddca/archive/2009/01/30/preparetomove-away-from-running-this-command.aspx</a></p>
<p>&#8220;</p>
<p>I have done what you have said consistently several times without running PrepareToMove.  </p>
<p>Create the new web apps in your DEV environment first making new databases for them.  </p>
<p>Detach these 2 new content databases you created by making your new web apps from your SharePoint farm.</p>
<p>Have your DBA (or you can do it yourself if you know how) restore the content from the 1 old content databases to the 2 new content databases.  </p>
<p>When the restore is complete, reattach the 2 new databases you just refreshed to your farm using the AddContentDB command in STSADM.  Make sure to add -assignnewdatabaseID and -clearchangelog parameters to the AddContentDB command.  </p>
<p>Check the SiteSynch table in your SSP Service database as indicated above and if the &#8216;Moving&#8217; column is TRUE, run the PrepareToMove STSADM command using the -contentDB command with the name of your new content DB and the -undo parameter.  Do this -undo command 2 times, once for each new contentDB.  </p>
<p>This worked for me when I had to refresh 2 separate databases in my DEV farm from 1 production content database.</p>
<p>&#8220;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/claytonj.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/claytonj.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/claytonj.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/claytonj.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/490/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=490&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2010/07/29/moving-content-database-between-farms/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint Audit Log</title>
		<link>http://claytonj.wordpress.com/2010/07/29/sharepoint-audit-log/</link>
		<comments>http://claytonj.wordpress.com/2010/07/29/sharepoint-audit-log/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 02:22:29 +0000</pubDate>
		<dc:creator>Clayton James</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/?p=483</guid>
		<description><![CDATA[I noticed our SharePoint content database growing at a rate that didn&#8217;t match the content being added. I decided to look at some table storage and ran the SQL Server 2008 reports from Management Studio and ran the Disk Usage report. Fantastic report detailing table size, number of records, etc&#8230; One table that stood out [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=483&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I noticed our SharePoint content database growing at a rate that didn&#8217;t match the content being added. I decided to look at some table storage and ran the SQL Server 2008 reports from Management Studio and ran the Disk Usage report. Fantastic report detailing table size, number of records, etc&#8230;</p>
<p>One table that stood out was the AuditData table which was 50Gb in size. SharePoint Auditing can take up so much database space especially if you are auditing an entire site collection. Auditing was capturing data since late 2007 and wasn&#8217;t being used at the company, so the decision to disable this functionality. Great&#8230;save space and system resources.</p>
<p>So I turned it off at the site collection in site settings.</p>
<p>So the next step moved to how do we remove these logs?</p>
<ul>
<li>Truncate the table &#8211; fast but unsupported and I am not sure what state this will leave you in</li>
<li>Object Model &#8211; write code to remove entries</li>
<li>stsadm trimauditlog- only available after SP2 &#8211; This is the one I selected</li>
</ul>
<p>Stsadm trimaudtilog<br />
<a href="http://technet.microsoft.com/en-us/library/cc706881(office.12).aspx">http://technet.microsoft.com/en-us/library/cc706881(office.12).aspx</a></p>
<p> I used the –url parameter instead of the -database parameter. I was receiving an object reference not set to an instance of an object error when using the -database parameter. I am not sure if it was because the site collection was migrated to a different database server and the audit logs was stored against a different database server.</p>
<p>I ran this command in 1 monthly intervals (which was painful) as there was a lot of data to clean up and the SQL database log file wouldn&#8217;t consume all the disk space. I would then manually shrink the log file DBCC ShrinkFile after every trim to free up space. I performed this action until the entire AuditData table was cleared.</p>
<p>So if your Content database is growing at an alarming rate then make sure you check your AuditData table and assess if you really need auditing enabled, especially for the entire site collection.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/claytonj.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/claytonj.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/claytonj.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/claytonj.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/483/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=483&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2010/07/29/sharepoint-audit-log/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>
	</item>
		<item>
		<title>Recursive loop treeview control</title>
		<link>http://claytonj.wordpress.com/2010/05/27/recursive-loop-treeview-control/</link>
		<comments>http://claytonj.wordpress.com/2010/05/27/recursive-loop-treeview-control/#comments</comments>
		<pubDate>Thu, 27 May 2010 03:53:31 +0000</pubDate>
		<dc:creator>Clayton James</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/?p=375</guid>
		<description><![CDATA[I am doing some work with the treeview control for displaying and selecting rooms in applications. When working with the treeview control you usually don&#8217;t know how many different levels of nodes you may be working with. Here are a couple of methods that will loop through all nodes in your treeview control. private void [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=375&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am doing some work with the treeview control for displaying and selecting rooms in applications. When working with the treeview control you usually don&#8217;t know how many different levels of nodes you may be working with. Here are a couple of methods that will loop through all nodes in your treeview control.</p>
<p>private void RecurseNodes()<br />
  {<br />
   foreach (TreeNode parentNode in locationsTreeView.Nodes)<br />
   {<br />
    if (parentNode.ChildNodes.Count &gt; 0)<br />
    {<br />
     RecurseChildren(parentNode);<br />
    }<br />
   }<br />
  }</p>
<p>  private void RecurseChildren(TreeNode tn)<br />
  {<br />
   if (tn.ChildNodes.Count &gt; 0)<br />
   {<br />
    tn.SelectAction = TreeNodeSelectAction.None;<br />
    foreach (TreeNode tnC in tn.ChildNodes)<br />
    {<br />
     RecurseChildren(tnC);<br />
    }<br />
   }<br />
  }</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/claytonj.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/claytonj.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/claytonj.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/claytonj.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/375/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&amp;blog=252582&amp;post=375&amp;subd=claytonj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2010/05/27/recursive-loop-treeview-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>
	</item>
	</channel>
</rss>
