<?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>Chris Forbes blogs on SharePoint &#38; .NET &#187; SharePoint</title>
	<atom:link href="http://chrisforbesblogs.net/tag/sharepoint/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisforbesblogs.net</link>
	<description>Developers chat on SharePoint and .NET</description>
	<lastBuildDate>Thu, 10 Nov 2011 21:53:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='chrisforbesblogs.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/3aa4775025bad14a027d0ade34632a33?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Chris Forbes blogs on SharePoint &#38; .NET &#187; SharePoint</title>
		<link>http://chrisforbesblogs.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://chrisforbesblogs.net/osd.xml" title="Chris Forbes blogs on SharePoint &#38; .NET" />
	<atom:link rel='hub' href='http://chrisforbesblogs.net/?pushpress=hub'/>
		<item>
		<title>SharePoint user group meeting, Edinburgh 5th May 2010</title>
		<link>http://chrisforbesblogs.net/2010/04/13/sharepoint-user-group-meeting-edinburgh-5th-may-2010/</link>
		<comments>http://chrisforbesblogs.net/2010/04/13/sharepoint-user-group-meeting-edinburgh-5th-may-2010/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 08:53:00 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[SUGUK]]></category>
		<category><![CDATA[Edinburgh]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2010/04/13/sharepoint-user-group-meeting-edinburgh-5th-may-2010/</guid>
		<description><![CDATA[I am very excited to announce that the next SUGUK meeting in Scotland is scheduled for May 5th at Microsoft, Waverly Gate, Edinburgh. &#160;&#160;&#160; Spencer Harbour http://www.harbar.net/articles/About.aspx (MVP) will be discussing Scaling SharePoint 2010 Topologies Learn about the new SharePoint Service architecture, and how you architect Services for your organization. We will talk about various [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&amp;blog=6742676&amp;post=249&amp;subd=chrisforbesblogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="margin:0;" class="MsoNormal"><span style="font-family:calibri;color:#000000;font-size:small;"><a href="http://chrisforbesblogs.files.wordpress.com/2010/04/suguk.gif"></a></span></p>
<p><span style="font-family:calibri;color:#000000;font-size:small;"><a href="http://chrisforbesblogs.files.wordpress.com/2010/04/suguk.gif"></a></span></p>
<p><span style="font-family:calibri;color:#000000;font-size:small;"><a href="http://chrisforbesblogs.files.wordpress.com/2010/04/suguk.gif"></a></span></p>
<p><span style="font-family:calibri;color:#000000;font-size:small;"><a href="http://chrisforbesblogs.files.wordpress.com/2010/04/suguk.gif"><img style="display:inline;border-width:0;margin:0 0 0 30px;" title="SUGUK" border="0" alt="SUGUK" align="right" src="http://chrisforbesblogs.files.wordpress.com/2010/04/suguk_thumb.gif?w=53&#038;h=68" width="53" height="68" /></a> I am very excited to announce that the next SUGUK meeting in Scotland is scheduled for May 5<sup>th</sup> at Microsoft, Waverly Gate, Edinburgh. </span></p>
<p> <span style="font-family:calibri;color:#000000;font-size:small;">&#160;</span><span style="font-family:calibri;color:#000000;font-size:small;">&#160;</span><span style="font-family:calibri;color:#000000;font-size:small;">&#160;</span>
<p><span style="font-family:calibri;color:#000000;font-size:small;">Spencer Harbour </span><a href="http://www.harbar.net/articles/About.aspx"><span style="font-family:calibri;color:#800080;font-size:small;">http://www.harbar.net/articles/About.aspx</span></a><span style="font-family:calibri;color:#000000;font-size:small;"> (MVP) will be discussing </span></p>
<p><span style="font-family:calibri;color:#000000;font-size:small;"><strong>Scaling SharePoint 2010 Topologies        <br /></strong></span><span style="font-family:calibri;color:#000000;font-size:small;">Learn about the new SharePoint Service architecture, and how you architect Services for your organization. We will talk about various Canonical SharePoint deployment types (Internet Presence, Partner Collaboration via Extranets, distributed/consolidated data centers, medium sized organization etc.) and describe how you architect the Services logical topology. In addition to the logical topology, we will drill into how you scale-up/scale-out the physical topology to meet the scale expectations for your organization. Regardless of the nature and scale of your organization, SharePoint 2010 now offers a topology for you! </span></p>
<p> <span style="font-family:calibri;color:#000000;font-size:small;"></span>
<p><span style="font-family:calibri;color:#000000;font-size:small;">and Jess Meats </span><a href="http://blogs.technet.com/jessmeats/default.aspx"><span style="font-family:calibri;color:#800080;font-size:small;">http://blogs.technet.com/jessmeats/default.aspx</span></a><span style="color:#000000;"><span style="font-size:small;"><span style="font-family:calibri;"> from Microsoft shall be diving into the new workflow capabilities in SP2010 including the visual design capabilities within Visio 2010.</span></span></span></p>
<p style="margin:0;" class="MsoNormal"><span style="font-family:calibri;color:#000000;font-size:small;">&#160;</span></p>
<h2>SharePint</h2>
<p style="margin:0;" class="MsoNormal">
<div style="margin:0;" class="MsoNormal"><span style="color:#000000;"><span style="font-size:small;"><span style="font-family:calibri;">The invite obviously extends to SharePint at the pub afterwards for a more informal discussions on SharePoint over a beer or two. </span></span></span></div>
<p><span style="color:#000000;"><span style="font-size:small;"><span style="font-family:calibri;"></span></span>
</p>
<p>   </span></p>
</p>
<p style="margin:0;" class="MsoNormal"><span style="font-family:calibri;color:#000000;font-size:small;">&#160;</span></p>
<h2>The Time</h2>
<p style="margin:0;" class="MsoNormal"><span style="color:#000000;"><span style="font-size:small;"><span style="font-family:calibri;">Doors open at 5:30 and will begin promptly at 6:00, with the obligatory half-time pizza and refreshments. </span></span></span></p>
<p style="margin:0;" class="MsoNormal"><span style="font-family:calibri;color:#000000;font-size:small;">&#160;</span></p>
<h2>The Venue</h2>
<p style="margin:0;" class="MsoNormal">
<div style="margin:0;" class="MsoNormal"><span style="color:#000000;"><span style="font-size:small;"><span style="font-family:calibri;">Microsoft Offices, Waverly Gate, 2-4 Waterloo Place, Edinburgh, EH1 3EG </span></span></span></div>
<p><span style="color:#000000;"><span style="font-size:small;"><span style="font-family:calibri;"></span></span>
</p>
<p>   </span></p>
</p>
<p style="margin:0;" class="MsoNormal">
<div style="margin:0;" class="MsoNormal"><span style="color:#000000;"><span style="font-size:small;"><span style="font-family:calibri;">Directions : http://www.microsoft.com/uk/about/map-edinburgh.mspx </span></span></span></div>
<p><span style="color:#000000;"><span style="font-size:small;"><span style="font-family:calibri;"></span></span>
</p>
<p>   </span></p>
</p>
<p style="margin:0;" class="MsoNormal">
<p>Posting on SUGUK.ORG : htt<a href="http://bit.ly/cuapXW">p://bit.ly/cuapXW</a></p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:f512de4a-c5cc-4982-b70c-2b44a35008c6" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/SUGUK" rel="tag">SUGUK</a>,<a href="http://technorati.com/tags/Edinburgh" rel="tag">Edinburgh</a>,<a href="http://technorati.com/tags/SharePoint" rel="tag">SharePoint</a></div>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:ce093f72-3b58-4bd6-bbe6-9ccc15e871e9" class="wlWriterEditableSmartContent">del.icio.us Tags: <a href="http://del.icio.us/popular/SUGUK" rel="tag">SUGUK</a>,<a href="http://del.icio.us/popular/Edinburgh" rel="tag">Edinburgh</a>,<a href="http://del.icio.us/popular/SharePoint" rel="tag">SharePoint</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chrisforbesblogs.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chrisforbesblogs.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chrisforbesblogs.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chrisforbesblogs.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/249/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&amp;blog=6742676&amp;post=249&amp;subd=chrisforbesblogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2010/04/13/sharepoint-user-group-meeting-edinburgh-5th-may-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2010/04/suguk_thumb.gif" medium="image">
			<media:title type="html">SUGUK</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create a Search Box delegate in SharePoint</title>
		<link>http://chrisforbesblogs.net/2009/11/09/how-to-create-a-search-box-delegate-in-sharepoint/</link>
		<comments>http://chrisforbesblogs.net/2009/11/09/how-to-create-a-search-box-delegate-in-sharepoint/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 20:37:18 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Delegates]]></category>
		<category><![CDATA[Search]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/11/09/how-to-create-a-search-box-delegate-in-sharepoint/</guid>
		<description><![CDATA[Simple but effective…I recently had to change the behaviour of the ‘SmallSearchBox’ control within&#160; SharePoint. I wanted to loose the ‘Advanced Search;’ link, the button style and also add some default text into the search box. I found the following method to be the simplest approach. Standard Search Box &#160; Custom delegate applied The search [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&amp;blog=6742676&amp;post=94&amp;subd=chrisforbesblogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://chrisforbesblogs.files.wordpress.com/2009/11/search48x48.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;margin:0 15px 0 0;" title="Search-48x48" border="0" alt="Search-48x48" align="left" src="http://chrisforbesblogs.files.wordpress.com/2009/11/search48x48_thumb.png?w=48&#038;h=48" width="48" height="48" /></a>Simple but effective…I recently had to change the behaviour of the ‘SmallSearchBox’ control within&#160; SharePoint. I wanted to loose the ‘Advanced Search;’ link, the button style and also add some default text into the search box. I found the following method to be the simplest approach.</p>
<p><em>Standard Search Box</em></p>
<p> <a href="http://chrisforbesblogs.files.wordpress.com/2009/11/image.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://chrisforbesblogs.files.wordpress.com/2009/11/image_thumb.png?w=469&#038;h=176" width="469" height="176" /></a></p>
<p>&#160;</p>
<p><em>Custom delegate applied</em></p>
<p style="font-family:tahoma;font-size:10pt;margin:0;"><a href="http://chrisforbesblogs.files.wordpress.com/2009/11/image1.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://chrisforbesblogs.files.wordpress.com/2009/11/image_thumb1.png?w=460&#038;h=149" width="460" height="149" /></a> </p>
<p>The search box is rendered using a delegate control. If you look at the master page you will see the delegate …</p>
<p>&lt;SharePoint:DelegateControl runat=”server” ControlId=” SmallSearchBox”&gt;</p>
<p>You can alter the behaviour of a delegate control by specifying a delegate with a smaller sequence number. I created the following delegate control within a standard feature…</p>
<p>Feature…</p>
<p style="margin:0 0 12pt;" class="MsoNormal"><span style="font-family:&quot;color:blue;font-size:10pt;">&lt;?</span><span style="font-family:&quot;color:#a31515;font-size:10pt;">xml</span><span style="font-family:&quot;color:blue;font-size:10pt;"> </span><span style="font-family:&quot;color:red;font-size:10pt;">version</span><span style="font-family:&quot;color:blue;font-size:10pt;">=</span><span style="font-family:&quot;font-size:10pt;"><font color="#000000">&quot;</font><span style="color:blue;">1.0</span><font color="#000000">&quot;</font><span style="color:blue;"> </span><span style="color:red;">encoding</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">utf-8</span><font color="#000000">&quot;</font><span style="color:blue;">?&gt;       <br />&lt;</span><span style="color:#a31515;">Elements</span><span style="color:blue;"> </span><span style="color:red;">xmlns</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;"><a href="http://schemas.microsoft.com/sharepoint/"><font color="#0000ff">http://schemas.microsoft.com/sharepoint/</font></a></span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span></span></p>
<p> <span style="font-family:&quot;font-size:10pt;"><span style="color:blue;">
<p style="margin:0 0 12pt;" class="MsoNormal">&lt;</p>
<p>     <span style="color:#a31515;">Control</span><span style="color:blue;"> </span><span style="color:red;">Id</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">SmallSearchInputBox</span><font color="#000000">&quot;</font><span style="color:blue;"> </span><span style="color:red;">Sequence</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">10</span><font color="#000000">&quot;</font><span style="color:blue;"> </span></span>
<p style="margin:0 0 12pt;" class="MsoNormal"><span style="color:blue;"></span><span style="color:red;">ControlClass</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">Microsoft.SharePoint.Portal.WebControls.SearchBoxEx</span><font color="#000000">&quot;</font><span style="color:blue;"> </span><span style="color:red;">ControlAssembly</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;       <br />&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">GoImageUrl</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">/_layouts/images/CFB/go.gif</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;       <br />&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">GoImageUrlRTL</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">/_layouts/images/CFB/.gif</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;       <br />&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">GoImageActiveUrl</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">/_layouts/images/CFB/go.gif</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;       <br />&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">GoImageActiveUrlRTL</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">/_layouts/images/CFB/go.gif</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;       <br />&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">UseSiteDefaults</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">true</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;       <br />&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">FrameType</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">None</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;       </p>
<p>&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">ShowAdvancedSearch</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">false</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;       <br />&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">QueryPromptString</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">Search&#8230;</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;       <br />&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">DropDownMode</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">HideDD_useDefaultScope</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;</span></p>
<p style="margin:0 0 12pt;" class="MsoNormal"><span style="color:blue;"></span><span style="color:blue;">       <br />&lt;/</span><span style="color:#a31515;">Control</span><span style="color:blue;">&gt;</span></p>
<p style="margin:0 0 12pt;" class="MsoNormal"><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Elements</span><span style="color:blue;">&gt;</span>
</p>
<p> </span>
<p>Note the Sequence=”10” attribute of the Control element. WSS out of the box refers to a sequence number of 100 and MOSS overrides this with a sequence number of 50. So as long as your sequence number is lower than this then your settings will be applied.</p>
<p>The four changes I was concerned was</p>
<p>1. Remove the ‘advanced search’ link which is handled by&#160; the ‘ShowAdvancedSearch’ property, </p>
<p>2.Add some default text to the search box which is handcled by&#160; the QueryPromptString property </p>
<p>3. Remove the scope drop down field. The DropDownMode property with the enumuration value of HideDD_userDefaultScope sorts that one out.</p>
<p>4. Finally I changed the image to my own go.gif image. I also deployed this within the same feature to a sub directory called CFB within the 12 hive images folder.</p>
<p>For a complete listing of the available properties please refer to the following link on MSDN.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.portal.webcontrols.searchboxex_members.aspx">http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.portal.webcontrols.searchboxex_members.aspx</a></p>
<p>&#160;</p>
</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:27c59b84-c0bc-4633-86e5-85a264a53d3d" class="wlWriterEditableSmartContent">del.icio.us Tags: <a href="http://del.icio.us/popular/SharePoint" rel="tag">SharePoint</a>,<a href="http://del.icio.us/popular/SmallSearchBox" rel="tag">SmallSearchBox</a>,<a href="http://del.icio.us/popular/Delegate" rel="tag">Delegate</a>,<a href="http://del.icio.us/popular/Searchbox" rel="tag">Searchbox</a></div>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:e9c7831d-ca6c-420b-bf2f-426a1f6ca2e2" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/SharePoint" rel="tag">SharePoint</a>,<a href="http://technorati.com/tags/SmallSearchBox" rel="tag">SmallSearchBox</a>,<a href="http://technorati.com/tags/Delegate" rel="tag">Delegate</a>,<a href="http://technorati.com/tags/Searchbox" rel="tag">Searchbox</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chrisforbesblogs.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chrisforbesblogs.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chrisforbesblogs.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chrisforbesblogs.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&amp;blog=6742676&amp;post=94&amp;subd=chrisforbesblogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2009/11/09/how-to-create-a-search-box-delegate-in-sharepoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/11/search48x48_thumb.png" medium="image">
			<media:title type="html">Search-48x48</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/11/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/11/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Using the SharePoint dispose checker tool</title>
		<link>http://chrisforbesblogs.net/2009/06/08/using-the-sharepoint-dispose-checker-tool/</link>
		<comments>http://chrisforbesblogs.net/2009/06/08/using-the-sharepoint-dispose-checker-tool/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 19:12:57 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Dispose Checker]]></category>
		<category><![CDATA[IDispose]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/06/08/using-the-sharepoint-dispose-checker-tool/</guid>
		<description><![CDATA[Objects using IDisposable A number of objects within the SharePoint object model implement the IDisposable interface. For the on-going performance of your SharePoint server you need to ensure you remember to correctly dispose of these objects within your code.  I guess this has always been important for any application you are building but its a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&amp;blog=6742676&amp;post=69&amp;subd=chrisforbesblogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2><strong>Objects using IDisposable</strong></h2>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2009/06/rubbish.jpg"><img style="border-right:0;border-top:0;display:inline;margin-left:0;border-left:0;margin-right:0;border-bottom:0;" title="rubbish" src="http://chrisforbesblogs.files.wordpress.com/2009/06/rubbish_thumb.jpg?w=170&#038;h=128" border="0" alt="rubbish" width="170" height="128" align="right" /></a> A number of objects within the SharePoint object model implement the <strong>IDisposable</strong> interface. For the on-going performance of your SharePoint server you need to ensure you remember to correctly dispose of these objects within your code.  I guess this has always been important for any application you are building but its a bit more crucial in SharePoint as your building your solutions on a platform that isn&#8217;t just servicing your application but could be many.</p>
<p> </p>
<h2><strong>So what’s the problem?</strong></h2>
<p>So what if you don’t dispose of your objects? Well your just using up memory that could have been released. So without recycling your application pool you run the risk of slowly degrading the performance of your SharePoint farm. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  In fact your application pools will automatically recycle when they hit a particular memory usage threshold, which could then result in slow page loads as pages are re-compiled by the JIT when requested.</p>
<p><strong> </strong></p>
<h2><strong>How to spot the problem?</strong></h2>
<p>If your spotting your SharePoint server application pools recycling frequently or your servers performance degrades during heavy usage then this could be an indication that your custom\3rd party code\web parts are not correctly disposing their objects.</p>
<p>You can check the ULS logs at <a href="http://chrisforbesblogs.co.uk/2009/04/27/12-hive-quick-file-path-reference/">12 hive</a> \LOGS. Your looking for entries related to <strong>SPRequest</strong>. It might be complaining about the number of SPRequests objects exceeding a configurable threshold and so on. You can increase this threhold setting through the registry. But first, try and use this as an indicator that some of your code or indeed a 3rd partys code such as some web parts etc. are not correctly disposing the SPSite and SPWeb objects. So look at this first before cranking this level up.</p>
<p>If you do want to change the threshold then look for the following sub key in your registry using regedit…</p>
<p> <em>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\HeapSettings</em><br />
 <br />
<em>LocalSPRequestWarnCount = &lt;set to the level you want&gt;</em></p>
<h2>How to dispose your objects</h2>
<p>Ok so that the problem, and how to determine if your getting the problem covered.  So how do you ensure your code isn’t leaving your SPSite and SPWeb objects ‘indisposed’. Well, as mentioned previously, both of these objects implement the <strong>IDisposable</strong> interface so you can go ahead and call the .<strong>Dispose</strong> method when your done with the object. Good practice would be to put this in a try, catch finally block…</p>
<p> </p>
<div id="codeSnippetWrapper">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;direction:ltr;line-height:12pt;">SPSite site = <span style="color:#0000ff;">null</span>;

<span style="color:#0000ff;">try</span>{   site = <span style="color:#0000ff;">new</span> SPSite(<span style="color:#006080;">"http://litwaredemo"</span>);

   Console.WriteLine(<span style="color:#006080;">"got a handle on the site {0} : {1}"</span>, 

   site.Title. site.Url);

}

<span style="color:#0000ff;">catch</span>(Exception ex)

{ 

  <span style="color:#008000;">//Catch exceptions here</span>

}

<span style="color:#0000ff;">finally</span>

{  

 <span style="color:#0000ff;">if</span> (site != <span style="color:#0000ff;">null</span>) site.Dispose();

}</pre>
<p> </p>
<p>Another approach, which I prefer, is to use the using statement. This will ensure the dispose is taken care of without you worrying about it. Like so…</p>
<p> </p>
<div id="codeSnippetWrapper">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;direction:ltr;line-height:12pt;"><span style="color:#0000ff;">using</span> (SPSite site = <span style="color:#0000ff;">new</span> SPSite(<span style="color:#006080;"><a href="http://litwaredemo">http://litwaredemo</a></span>)

{

    Console.WriteLine("got a handle on the site {0} : {1},

    site.Title, site.Url);

}</pre>
<p> </p>
<p>The one catch (if you’ll pardon the pun) to dispose, is to only take care of the objects that you have instantiated, if your grabbing a handle from things like SPContext then you don’t need to worry about disposing this, let SPContext take care of it.</p>
<p> </p>
<div id="codeSnippetWrapper">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;direction:ltr;line-height:12pt;">SPSite site = SPContext.Site;Console.WriteLine(<span style="color:#006080;">"got a handle on {0} : {1}"</span>,

site.Title, site.Url);

//Don’t dispose site, leave this to SPContext to worry about.</pre>
<p> </p>
<h2>Using the SharePoint Dispose Checker Tool</h2>
<p>Microsoft have released a neat console application which you can add into Visual Studio and have check your code once your all done. It will output any suspect methods which may not be disposing these objects correctly. You need to look at the output as it may be reporting some false positives, for example you may have some factory methods which instantiate these objects and return them. But I find this tool invaluable!</p>
<p>You can download the link from MSDN here <a href="http://code.msdn.microsoft.com/SPDisposeCheck" target="_blank">Dispose Checker Tool</a> To add this into Visual Studio just…</p>
<p>1. select<em> Tools\External Tools</em> from the menu option in VS. Then click add.</p>
<p>2. Go ahead and give the tool a friendly name (include an &amp; next to a one of the letters if you want to use a keyboard shortcut).</p>
<p>3. in the command box add the correct path to the checker executable</p>
<p>  eg C:\Program Files\Microsoft\SharePoint Dispose Check\SPDisposeCheck.exe</p>
<p>4.In the Arguments box select the menu icon and select ‘Project Directory</p>
<p>5. Check the ‘Use output window’ to have the results kept within VS.</p>
<p>6. And finally, select ‘prompt for arguments’ this is useful if you need to add additional arguments such as –debug etc.</p>
<p> </p>
<p>Then once your done writing your code, just compile as normal then run the tool. Below is an example output which is telling me I haven’t disposed of the xxSite object. I have highlighted the important bits in red…</p>
<p> </p>
<table border="1" cellspacing="0" cellpadding="2" width="472">
<tbody>
<tr>
<td width="470" valign="top">Line: 121Notes:      Disposable type not disposed: Microsoft.SharePoint.SPSite     ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope</p>
<p>More Information: <a href="http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_110">http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_110</a></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>ID: SPDisposeCheckID_110</p>
<p>Module: LookingAtWebFields.exe</p>
<p>Method: ConsoleApplication1.Program.Main(System.String[])</p>
<p><strong><span style="color:#ff0000;">Statement: XXsite := new Microsoft.SharePoint.SPSite(&#8220;</span></strong><a href="http://litwaredemo&quot;)"><strong><span style="color:#ff0000;">http://litwaredemo&#8221;)</span></strong></a></p>
<p>Source: C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\Lab Work\LookingAtWebFields\LookingAtWebFields\Program.cs</p>
<p>Line: 121</p>
<p>Notes:      <strong><span style="color:#ff0000;">Disposable type not disposed: Microsoft.SharePoint.SPSite</span></strong></p>
<p>     ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope</p>
<p>More Information: <a href="http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_110">http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_110</a></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Total Found: 2</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Modules Checked: 3</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>LookingAtWebFields.exe</p>
<p>LookingAtWebFields.vshost.exe</p>
<p>LookingAtWebFields.exe</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Modules Ignored: 0</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Methods Ignored: 0</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</td>
</tr>
</tbody>
</table>
<p> </p>
<p>So there you go, hope this document has been of some help. Happy SharePoint coding <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p> </p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:f11bdee3-5313-4af7-9ff7-e83768bf680e" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/SharePoint">SharePoint</a>,<a rel="tag" href="http://technorati.com/tags/IDispose">IDispose</a>,<a rel="tag" href="http://technorati.com/tags/SharePoint+Dispose+Checker+Tool">SharePoint Dispose Checker Tool</a></div>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:5b196733-5dfa-44c1-a367-4a5d5ce1b6f0" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">Flickr Tags: <a rel="tag" href="http://flickr.com/photos/tags/SharePoint">SharePoint</a>,<a rel="tag" href="http://flickr.com/photos/tags/IDispose">IDispose</a>,<a rel="tag" href="http://flickr.com/photos/tags/SharePoint+Dispose+Checker+Tool">SharePoint Dispose Checker Tool</a></div>
</div>
</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chrisforbesblogs.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chrisforbesblogs.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chrisforbesblogs.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chrisforbesblogs.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&amp;blog=6742676&amp;post=69&amp;subd=chrisforbesblogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2009/06/08/using-the-sharepoint-dispose-checker-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/06/rubbish_thumb.jpg" medium="image">
			<media:title type="html">rubbish</media:title>
		</media:content>
	</item>
		<item>
		<title>Groove to become SharePoint Workspace 2010</title>
		<link>http://chrisforbesblogs.net/2009/05/21/groove-to-become-sharepoint-workspace-2010/</link>
		<comments>http://chrisforbesblogs.net/2009/05/21/groove-to-become-sharepoint-workspace-2010/#comments</comments>
		<pubDate>Thu, 21 May 2009 15:28:00 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[Announcments]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Groove]]></category>
		<category><![CDATA[Office 2010]]></category>
		<category><![CDATA[WorkSpace]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/05/21/groove-to-become-sharepoint-workspace-2010/</guid>
		<description><![CDATA[Microsoft announce that Groove to be relaunched as Microsoft SharePoint Workspace 2010<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&amp;blog=6742676&amp;post=67&amp;subd=chrisforbesblogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Microsoft have recently announced that their Office Groove product shall be re-launched as SharePoint Workspace 2010. It’ll will be interesting to see what functionality this shall offer but I suspect this shall bring some real off-line and replication capabilities to SharePoint. Then we can rename SharePoint as <strike>Lotus</strike> Microsoft Notes <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&#160;</p>
<p>For more information you can subscribe to Microsoft’s new SharePoint workspace blog. I’ll let you discover the &#8216;<em>snappy’</em> title they have given it : <a href="http://blogs.msdn.com/sharepoint_workspace_development_team/Default.aspx" target="_blank">SharePoint Workspace Blog</a></p>
<p>&#160;</p>
<p>&#160;</p>
<p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:afc252af-58a0-4c81-a8f7-1661c9549048" style="display:inline;float:none;margin:0;padding:0;">del.icio.us Tags: <a href="http://del.icio.us/popular/SharePoint" rel="tag">SharePoint</a>,<a href="http://del.icio.us/popular/WorkSpace" rel="tag">WorkSpace</a>,<a href="http://del.icio.us/popular/Office+2010" rel="tag">Office 2010</a>,<a href="http://del.icio.us/popular/Groove" rel="tag">Groove</a></div>
</p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:0186dc3d-5ba5-49ad-aecc-802810294d7d" style="display:inline;float:none;margin:0;padding:0;">Technorati Tags: <a href="http://technorati.com/tags/SharePoint" rel="tag">SharePoint</a>,<a href="http://technorati.com/tags/WorkSpace" rel="tag">WorkSpace</a>,<a href="http://technorati.com/tags/Office+2010" rel="tag">Office 2010</a>,<a href="http://technorati.com/tags/Groove" rel="tag">Groove</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chrisforbesblogs.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chrisforbesblogs.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chrisforbesblogs.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chrisforbesblogs.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&amp;blog=6742676&amp;post=67&amp;subd=chrisforbesblogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2009/05/21/groove-to-become-sharepoint-workspace-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint Manager 2007 &#8211; one for your tool box!</title>
		<link>http://chrisforbesblogs.net/2009/05/14/sharepoint-manager-2007-one-for-your-tool-box/</link>
		<comments>http://chrisforbesblogs.net/2009/05/14/sharepoint-manager-2007-one-for-your-tool-box/#comments</comments>
		<pubDate>Thu, 14 May 2009 15:30:25 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint Manager 2007]]></category>
		<category><![CDATA[SharePoint object model explorer]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/05/14/sharepoint-manager-2007-one-for-your-tool-box/</guid>
		<description><![CDATA[If you haven’t explored the tools and projects going on in Codeplex around SharePoint I would strongly&#160; encourage you to take a look. There is a wealth of great accelerators, ideas and useful tools that can save you a lot of time when developing SharePoint solutions. Codeplex &#8211; SharePoint &#160; One of my ‘must have’ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&amp;blog=6742676&amp;post=66&amp;subd=chrisforbesblogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you haven’t explored the tools and projects going on in Codeplex around SharePoint I would strongly&#160; encourage you to take a look. There is a wealth of great accelerators, ideas and useful tools that can save you a lot of time when developing SharePoint solutions. <a href="http://www.codeplex.com/site/search?projectSearchText=sharepoint" target="_blank">Codeplex &#8211; SharePoint</a></p>
<p>&#160;</p>
<p>One of my ‘must have’ tools is <a href="http://spm.codeplex.com/" target="_blank">SharePoint Manager 2007</a>. This tool is a SharePoint object model explorer and enables you to browser every site on your local farm and view every property. You can even change the properties via the tool which can be a great time saver. Every spent time creating quick and nasty console apps to make some changes to your SP configuration. I know I have!</p>
<p>&#160;</p>
<p>I also find this a great tool to quickly audit a new SharePoint farm and get a quick glimpse of the sites, app pools etc in use.</p>
<p>&#160;</p>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2009/05/spm07.jpg"><img title="SPM07" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="222" alt="SPM07" src="http://chrisforbesblogs.files.wordpress.com/2009/05/spm07_thumb.jpg?w=244&#038;h=222" width="244" border="0" /></a>&#160; </p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:59b8668f-90c0-4578-b86d-350db1cbb430" style="display:inline;float:none;margin:0;padding:0;">Technorati Tags: <a href="http://technorati.com/tags/SharePoint" rel="tag">SharePoint</a>,<a href="http://technorati.com/tags/SharePoint+Manager+2007" rel="tag">SharePoint Manager 2007</a>,<a href="http://technorati.com/tags/SharePoint+object+model+explorer" rel="tag">SharePoint object model explorer</a></div>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:953a21dd-29a2-4608-9b4a-63c7944676e3" style="display:inline;float:none;margin:0;padding:0;">del.icio.us Tags: <a href="http://del.icio.us/popular/SharePoint" rel="tag">SharePoint</a>,<a href="http://del.icio.us/popular/SharePoint+Manager+2007" rel="tag">SharePoint Manager 2007</a>,<a href="http://del.icio.us/popular/SharePoint+object+model+explorer" rel="tag">SharePoint object model explorer</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chrisforbesblogs.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chrisforbesblogs.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chrisforbesblogs.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chrisforbesblogs.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&amp;blog=6742676&amp;post=66&amp;subd=chrisforbesblogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2009/05/14/sharepoint-manager-2007-one-for-your-tool-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/05/spm07_thumb.jpg" medium="image">
			<media:title type="html">SPM07</media:title>
		</media:content>
	</item>
		<item>
		<title>Custom Lookup Fields</title>
		<link>http://chrisforbesblogs.net/2009/03/15/custom-lookup-fields/</link>
		<comments>http://chrisforbesblogs.net/2009/03/15/custom-lookup-fields/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 14:49:26 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Custom Lookup Field]]></category>
		<category><![CDATA[FLDTYPES.XML]]></category>
		<category><![CDATA[Lookup]]></category>
		<category><![CDATA[LookupMulti]]></category>
		<category><![CDATA[RenderPattern]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/03/15/custom-lookup-fields/</guid>
		<description><![CDATA[I was working on a client project recently and was using the out of the box SharePoint Lookup fields to manage ‘admin lists’ Basically allowing the user’s to manage the contents of their own drop down list fields. But the problem with the out of the box look up field is that it displays the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&amp;blog=6742676&amp;post=41&amp;subd=chrisforbesblogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was working on a client project recently and was using the out of the box SharePoint Lookup fields to manage ‘admin lists’ Basically allowing the user’s to manage the contents of their own drop down list fields. </p>
<p>But the problem with the out of the box look up field is that it displays the value in the list views and when reading an&#160; item as a Hyperlink. So when the user click the link they get taken to the linked item, which in this case, is just an admin list with one field in it. So they kind of get lost!</p>
<p>This doesn&#8217;t improve usability of the application so I did some investigating and came up with the following solution. If anyone has any other ideas on how to achieve this I’d love to hear from you.</p>
<p>The following screen shots illustrate the solution you can see the lookup field is now display <em>without</em> the hyperlink to the corresponding lookup list, this is also the case when the list item is displayed in read mode.</p>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2009/03/image4.png"><img title="image" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="40" alt="image" src="http://chrisforbesblogs.files.wordpress.com/2009/03/image-thumb4.png?w=335&#038;h=40" width="335" border="0" /></a>&#160;</p>
<p>&#160;</p>
<p><em>Field being displayed without the hyperlink.</em></p>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2009/03/image1.png"><img title="image" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="46" alt="image" src="http://chrisforbesblogs.files.wordpress.com/2009/03/image-thumb1.png?w=197&#038;h=46" width="197" border="0" /></a>&#160;</p>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2009/03/image2.png"><img title="image" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="49" alt="image" src="http://chrisforbesblogs.files.wordpress.com/2009/03/image-thumb2.png?w=256&#038;h=49" width="256" border="0" /></a> </p>
<p>&#160;</p>
<p>After looking at the FLYTYPES.XML file found in the …12\TEMPLATE\XML directory of SharePoint I located the ‘Lookup’ field definition…</p>
<p><span class="kwrd"><font face="Arial">&lt;Field Name=&quot;TypeName&quot;&gt;Lookup&lt;/Field&gt;</font></span></p>
<p><span class="kwrd">If you look at it’s RenderTemplate and in particular the ‘DisplayPattern’ you will see this is where the anchor tag is added.</span></p>
<p><span class="kwrd"></span></p>
<p><span class="kwrd">So, my solution was to create your own custom field&#160; which has a parent type of Lookup and then define your own RenderPattern without any anchor tags.</span></p>
<p><span class="kwrd"></span></p>
<p>You can do this by using the visual studio extensions for SharePoint. After creating a new solution add a new Field Control</p>
<p>&#160;</p>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2009/03/image3.png"><img title="image" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="285" alt="image" src="http://chrisforbesblogs.files.wordpress.com/2009/03/image-thumb3.png?w=462&#038;h=285" width="462" border="0" /></a> </p>
<p> Then in the field definition I defined the following field….</p>
<p>&#160;</p>
<pre class="code"><span style="color:blue;">&lt;</span><span style="color:#a31515;">FieldType</span><span style="color:blue;">&gt;
  &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">TypeName</span>&quot;<span style="color:blue;">&gt;</span>LookupNoLinkField<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;
  &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">TypeDisplayName</span>&quot;<span style="color:blue;">&gt;</span>LookupNoLinkField<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;
  &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">TypeShortDescription</span>&quot;<span style="color:blue;">&gt;</span>Lookup (No Link)<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;
  &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">ParentType</span>&quot;<span style="color:blue;">&gt;</span>Lookup<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;
  &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">UserCreatable</span>&quot;<span style="color:blue;">&gt;</span>FALSE<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;
  &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">FieldTypeClass</span>&quot;<span style="color:blue;">&gt;</span>7710ed2c-00e2-40e8-92dc-ea8ee5197138<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;
  &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">FieldEditorUserControl</span>&quot;<span style="color:blue;">&gt;</span>/_controltemplates/LookupFieldEditor.ascx<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;
  &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">SQLType</span>&quot;<span style="color:blue;">&gt;</span>int<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;
  &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">Sortable</span>&quot;<span style="color:blue;">&gt;</span>TRUE<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;
  &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">Filterable</span>&quot;<span style="color:blue;">&gt;</span>TRUE<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;
  &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">ShowInListCreate</span>&quot;<span style="color:blue;">&gt;</span>TRUE<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;
  &lt;</span><span style="color:#a31515;">RenderPattern </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">DisplayPattern</span>&quot;<span style="color:blue;">&gt;
    &lt;</span><span style="color:#a31515;">LookupColumn </span><span style="color:red;">HTMLEncode</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">TRUE</span>&quot; <span style="color:blue;">/&gt;
  &lt;/</span><span style="color:#a31515;">RenderPattern</span><span style="color:blue;">&gt;
&lt;/</span><span style="color:#a31515;">FieldType</span><span style="color:blue;">&gt;</span></pre>
<p>Ok so because nothing in life is easy, there is a nice Gotcha! If either through the UI or through the API design to change this field now to allow multiv values then what actually happens is the field type is change to LookupMulti. So back comes your anchor tags. So you need to do the same thing but this time base you new custom field to parent the LookupMulti type.</p>
<p><span style="color:blue;">&lt;</span><span style="color:#a31515;">FieldType</span><span style="color:blue;">&gt;<br />
    <br />&#160; &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">TypeName</span>&quot;<span style="color:blue;">&gt;</span>LookupNoLinkMultiField<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;<br />
    <br />&#160; &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">TypeDisplayName</span>&quot;<span style="color:blue;">&gt;</span>LookupNoLinkMultiField<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;<br />
    <br />&#160; &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">TypeShortDescription</span>&quot;<span style="color:blue;">&gt;</span>Lookup-Multi (No Link)<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;<br />
    <br />&#160; &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">ParentType</span>&quot;<span style="color:blue;">&gt;</span>LookupMulti<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;<br />
    <br />&#160; &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">UserCreatable</span>&quot;<span style="color:blue;">&gt;</span>FALSE<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;<br />
    <br />&#160; &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">FieldTypeClass</span>&quot;<span style="color:blue;">&gt;</span>63aa539e-d34e-4858-bb93-c659103713f1<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;<br />
    <br />&#160; &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">FieldEditorUserControl</span>&quot;<span style="color:blue;">&gt;</span>/_controltemplates/LookupFieldEditor.ascx<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;<br />
    <br />&#160; &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">SQLType</span>&quot;<span style="color:blue;">&gt;</span>int<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;<br />
    <br />&#160; &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">Sortable</span>&quot;<span style="color:blue;">&gt;</span>TRUE<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;<br />
    <br />&#160; &lt;</span><span style="color:#a31515;">Field </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">Filterable</span>&quot;<span style="color:blue;">&gt;</span>TRUE<span style="color:blue;">&lt;/</span><span style="color:#a31515;">Field</span><span style="color:blue;">&gt;<br />
    <br />&#160; &lt;</span><span style="color:#a31515;">RenderPattern </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">DisplayPattern</span>&quot;<span style="color:blue;">&gt;<br />
    <br />&#160;&#160;&#160; &lt;</span><span style="color:#a31515;">LookupColumn </span><span style="color:red;">HTMLEncode</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">TRUE</span>&quot; <span style="color:blue;">/&gt;<br />
    <br />&#160; &lt;/</span><span style="color:#a31515;">RenderPattern</span><span style="color:blue;">&gt;<br />
    <br />&lt;/</span><span style="color:#a31515;">FieldType</span><span style="color:blue;">&gt;</span></p>
<p><span style="color:blue;"></span>&#160;</p>
<p>With the solution I was building I was changing the field type to allow multi values…</p>
<p><font size="2"></p>
<p>lookupField.AllowMultipleValues = </p>
<p>  <font color="#0000ff" size="2"><font color="#0000ff" size="2">true</font></font><font size="2">;</font></font></p>
<p><font size="2">this resulted in the field reverting to the standard lookup field types. So how do you change this to be your customer lookup field.</font></p>
<p><font size="2"></font></p>
<p><font size="2">Well to begin with I looked at the method <em>SPField.Type</em> which takes an enumeration value <em>SPFieldType.</em> So here was my problem, what do you put here when is a custom field??</font></p>
<p><font size="2">I solved this by altering the <em>SchemaXml</em> property of the field. </font></p>
<p><font size="2"></font></p>
<p><font size="2"></p>
<p>lField.SchemaXml = lField.SchemaXml.Replace(</p>
<p>  <font color="#a31515" size="2"><font color="#a31515" size="2">&quot;LookupMulti&quot;</font></font><font size="2">, </font><font color="#a31515" size="2"><font color="#a31515" size="2">&quot;LookupNoLinkMultiField&quot;</font></font><font size="2">)</font></font></p>
<p>This ensures your custom field is used and not the standard field. Let me know if you have any other solutions for this.</p>
<p>&#160;</p>
<p><font size="2"></font></p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:ba25f1a5-7c54-4a6d-b8fc-8ee5d857a506" style="display:inline;float:none;margin:0;padding:0;">del.icio.us Tags: <a href="http://del.icio.us/popular/Sharepoint" rel="tag">Sharepoint</a>,<a href="http://del.icio.us/popular/FLDTYPES.XML" rel="tag">FLDTYPES.XML</a>,<a href="http://del.icio.us/popular/Lookup" rel="tag">Lookup</a>,<a href="http://del.icio.us/popular/LookupMulti" rel="tag">LookupMulti</a>,<a href="http://del.icio.us/popular/Custom+Lookup+Field" rel="tag">Custom Lookup Field</a>,<a href="http://del.icio.us/popular/RenderPattern" rel="tag">RenderPattern</a></div></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chrisforbesblogs.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chrisforbesblogs.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chrisforbesblogs.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chrisforbesblogs.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&amp;blog=6742676&amp;post=41&amp;subd=chrisforbesblogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2009/03/15/custom-lookup-fields/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/03/image-thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/03/image-thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/03/image-thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/03/image-thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Debugging SharePoint</title>
		<link>http://chrisforbesblogs.net/2009/03/01/debugging-sharepoint/</link>
		<comments>http://chrisforbesblogs.net/2009/03/01/debugging-sharepoint/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 18:08:05 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Debugging]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/03/01/debugging-sharepoint/</guid>
		<description><![CDATA[One important aspect when developing within SharePoint is obviously how to Debug your code. To begin with you need to disable the friendly, or custom, error messages which has been enabled in SharePoint.&#160; You need to modify the web.config file. Here are the attributes to change… &#60;configuration&#62; &#60;SharePoint&#62; &#60;SafeMode CallStack=&#34;true&#34; /&#62; &#60;/SharePoint&#62; &#60;system.web&#62; &#60;customErrors mode=&#34;Off&#34; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&amp;blog=6742676&amp;post=17&amp;subd=chrisforbesblogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One important aspect when developing within SharePoint is obviously how to Debug your code. </p>
<p>To begin with you need to disable the friendly, or custom, error messages which has been enabled in SharePoint.&#160; You need to modify the web.config file. Here are the attributes to change…</p>
<pre class="code"><span style="color:blue;">&lt;</span><span style="color:#a31515;">configuration</span><span style="color:blue;">&gt;
  &lt;</span><span style="color:#a31515;">SharePoint</span><span style="color:blue;">&gt;
    &lt;</span><span style="color:#a31515;">SafeMode </span><span style="color:red;">CallStack</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">true</span>&quot; <span style="color:blue;">/&gt;
  &lt;/</span><span style="color:#a31515;">SharePoint</span><span style="color:blue;">&gt;

  &lt;</span><span style="color:#a31515;">system.web</span><span style="color:blue;">&gt;
    &lt;</span><span style="color:#a31515;">customErrors </span><span style="color:red;">mode</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">Off</span>&quot; <span style="color:blue;">/&gt;
    &lt;</span><span style="color:#a31515;">compilation </span><span style="color:red;">debug</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">true</span>&quot;
  <span style="color:blue;">&lt;/</span><span style="color:#a31515;">system.web</span><span style="color:blue;">&gt;</span></pre>
<p><a href="http://11011.net/software/vspaste"></a></p>
<p><strong><u>Local Debugging</u></strong></p>
<p>Remember to change this back when your finished debugging. Occasionally some intentional expectations are thrown to provide information back to the user.&#160; Such as ‘Can’t delete this site as it contains sub sites.’ If you don’t put custom errors back on the user will get an un-friendly stack trace instead.</p>
<p>If, in your development environment you are running SharePoint locally, on the same machine that visual studio has been installed then debugging is fairly easy…</p>
<p>Lets say you have just installed a Feature which has some feature activation code and you wont to step through your code when the feature is activated, before deploying the feature just add a break point at the start of your activation method.</p>
<pre class="code">System.Diagnostics.<span style="color:#2b91af;">Debugger</span>.Break();</pre>
<p><a href="http://11011.net/software/vspaste"></a></p>
<p><strong><u>Remote debugging</u></strong></p>
<p>Once you have deployed the feature you will have either deployed the supporting DLL to the GAC (Global Assembly Cache) or in the SharePoints’ site corresponding BIN directory.&#160; If you have the Visual Studio solution running then you wont need to copy any PCB supporting debug files. Just attach to the IIS worker process from Visual Studio and your break point will fire when you activate the feature.</p>
<p>&#160;</p>
<p>If you need to debug your code from a remote server you need to install the Visual Studio remote debugger on the server. Its a little tricky as you need to get your local firewall configured to let&#160; you through, which had me stumped for some time. If its just for a quick debug you could disable your firewall, may save you some headaches, but remember to put it back on again. Check the documentation for setting this up on msdn <a href="http://msdn.microsoft.com/en-us/library/bt727f1t.aspx">http://msdn.microsoft.com/en-us/library/bt727f1t.aspx</a></p>
<p>&#160;</p>
<p>Happy debugging.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chrisforbesblogs.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chrisforbesblogs.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chrisforbesblogs.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chrisforbesblogs.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&amp;blog=6742676&amp;post=17&amp;subd=chrisforbesblogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2009/03/01/debugging-sharepoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>
	</item>
		<item>
		<title>The time has come&#8230;</title>
		<link>http://chrisforbesblogs.net/2009/02/26/the-time-has-come/</link>
		<comments>http://chrisforbesblogs.net/2009/02/26/the-time-has-come/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 13:36:12 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[General Chat]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/?p=6</guid>
		<description><![CDATA[Ok I have brought myself into the 21st centuary. For years I have been an avid forum user both consuming the knowledge out there and occasionally contributing. I now think its time I gave something back to the community and contribute in a more substantial way&#8230; I intend to make a point of blog&#8217;in anything [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&amp;blog=6742676&amp;post=6&amp;subd=chrisforbesblogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ok I have brought myself into the 21st centuary. For years I have been an avid forum user both consuming the knowledge out there and occasionally contributing. I now think its time I gave something back to the community and contribute in a more substantial way&#8230;</p>
<p>I intend to make a point of blog&#8217;in anything I feel would be useful and perhaps would have to google myself. Hopefully you will find some use to my contribution to the .NET and SharePoint community. I&#8217;d love to hear from you and would encourage you to comment on any posts you feel are useful.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chrisforbesblogs.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chrisforbesblogs.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chrisforbesblogs.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chrisforbesblogs.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&amp;blog=6742676&amp;post=6&amp;subd=chrisforbesblogs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2009/02/26/the-time-has-come/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>
	</item>
	</channel>
</rss>
