<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Edwin Vriethoff</title>
	
	<link>http://edwin.vriethoff.net</link>
	<description>Edwin Vriethoff</description>
	<lastBuildDate>Thu, 21 Jan 2010 08:49:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/EdwinDotNet" /><feedburner:info uri="edwindotnet" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2FEdwinDotNet" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FEdwinDotNet" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2FEdwinDotNet" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/EdwinDotNet" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FEdwinDotNet" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FEdwinDotNet" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FEdwinDotNet" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:browserFriendly>A blog with tips and info about .NET, C# , Sharepoint en BizTalk written by Edwin Vriethoff.</feedburner:browserFriendly><item>
		<title>SharePoint 2010 Mobile Web Part development</title>
		<link>http://feedproxy.google.com/~r/EdwinDotNet/~3/FNI5yO0P_ew/</link>
		<comments>http://edwin.vriethoff.net/2010/01/17/sharepoint-2010-mobile-web-part-development/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 20:15:13 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[web part]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/?p=321</guid>
		<description><![CDATA[ For a SharePoint 2010 demo i&#8217;m building a web part that should be accessible by Mobile devices. In SharePint 2010 all mobile devices are redirected by default to the mobile SharePoint rendering engine.
The mobile rendering engine of SharePoint provides mobile users access to the sites with a completely stripped interface. Its main function is [...]]]></description>
			<content:encoded><![CDATA[<p><img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="mobiledevice" src="http://edwin.vriethoff.net/wp-content/mobiledevice.jpg" border="0" alt="mobiledevice" width="125" height="137" align="left" /> For a SharePoint 2010 demo i&#8217;m building a web part that should be accessible by Mobile devices. In SharePint 2010 all mobile devices are redirected by default to the mobile SharePoint rendering engine.</p>
<p>The mobile rendering engine of SharePoint provides mobile users access to the sites with a completely stripped interface. Its main function is to list all libraries and to provide basic access to them. For wiki and blog sites the rendering engine also provides some content rendering.</p>
<p>To keep the amount of data as low as possible, almost all web parts are completely stripped from the mobile site. Only when a web part developer provided a special mobile version of the web part, the web part will be accessible in the interface and to keep the mobile screen as empty as possible, the user must first expand the web part via its title to see it.</p>
<p>Documentation about SharePoint Mobile development is provided at <a href="http://msdn.microsoft.com/en-us/library/ms464268(office.14).aspx" onclick="javascript:pageTracker._trackPageview('/outbound/article/msdn.microsoft.com');" target="_blank">MSDN</a>. At first it all looks quite complex, but building a mobile version of a web part is actually not that hard. Below I will explain the required steps with a &#8216;Hello world&#8217; example. For this sample I will not rename the default object names provided by the Visual Studio templates.</p>
<p><span id="more-321"></span><br />
<strong>Create a sample site</strong></p>
<p>In this sample we begin with a fresh empty site. Create a new “Blank Site” and call it “Mobile Demo”.</p>
<p><a href="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step1.jpg"  target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Create a sample site" src="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step1_thumb.jpg" border="0" alt="Create a sample site" width="240" height="185" /></a></p>
<p><strong>Create a Visual Studio 2010 Visual Web Part Project</strong></p>
<p>Visual studio 2010 includes a full set of SharePoint templates. These templates automatically publish and debug the project to your SharePoint environment.</p>
<p>Start a new “Visual Web Part Project” and name it “MobileWebPartDemo”.</p>
<p><a href="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step2.jpg"  target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Create a Visual Studio 2010 Visual Web Part Project" src="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step2_thumb.jpg" border="0" alt="Create a Visual Studio 2010 Visual Web Part Project" width="240" height="213" /></a></p>
<p><strong>Add a literal with the “hello world” message</strong></p>
<p>We will now create the normal SharePoint web part. We only show a sample message by adding a literal to the web part controls.</p>
<p>Open the class file “VisualWebPart1UserControl.ascx.cs” and add the following code to the load event:</p>
<div class="code">Literal litHello = new Literal();<br />
litHello.Text = &#8220;Hello World. This is the normal SharePoint web part.&#8221;;<br />
Controls.Add(litHello);</div>
<p><a href="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step3.jpg"  target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Add a literal with the “hello world” message" src="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step3_thumb.jpg" border="0" alt="Add a literal with the “hello world” message" width="240" height="192" /></a></p>
<p><strong>Build and add the web part to the page</strong></p>
<p>Press F5 to compile and build the web part. Internet explorer will start. Browse to the “Mobile demo” sample site and open the default page in edit mode. Add a new web part. Inside the “Custom” category you will find our demo web part. Add “VisualWebPart1” to the page.</p>
<p><a href="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step4.jpg"  target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Build and add the web part to the page" src="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step4_thumb.jpg" border="0" alt="Build and add the web part to the page" width="240" height="256" /></a></p>
<p><strong>Preview the site</strong></p>
<p>Exit the edit mode of the page. You will now see your site and the web part as normal users will see it.</p>
<p><a href="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step5.jpg"  target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Preview the site" src="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step5_thumb.jpg" border="0" alt="Preview the site" width="240" height="256" /></a></p>
<p><strong>Preview the mobile site</strong></p>
<p>To view the web site in mobile view, type a “/m” after the normal site url. For example: “http://localhost/mobiledemo/m/”.</p>
<p>At this moment the website is rendered in the mobile view. But hey! We don’t see the web part we just published. This is because the engine strips all normal web parts to keep the data transfer as low as possible. Only mobile optimized web parts will be shown.</p>
<p><a href="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step6.jpg"  target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Preview the mobile site" src="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step6_thumb.jpg" border="0" alt="Preview the mobile site" width="134" height="320" /></a></p>
<p><strong>Create the mobile (adapter) version of our web part</strong></p>
<p>To add our web part to the mobile version of the site we must provide SharePoint with a mobile optimized version of our web part. We do this by adding a new class. Microsoft calls this class an adapter.</p>
<p>Add a new class and name it “VisualWebPart1MobileAdapter.cs”. Note that we added the name of our web part in front and added the text “MobileAdapter” at the end.</p>
<p>Microsoft recommends to use the namespace “SharePoint. WebPartPages.MobileAdapters” so modify the namespace to use “MobileWebPartDemo.SharePoint.WebPartPages .MobileAdapters”.</p>
<p>Our class should inherit the “WebPartMobileAdapter” class.</p>
<p>The adapter does not use the “OnLoad” event. Instead it uses the “CreateControlsForDetailView” to render. Override this class and add the following code:</p>
<div class="code">Literal litHello = new Literal();<br />
litHello.Text = &#8220;Hello World. This is the Mobile version of the SharePoint web part.&#8221;;<br />
Controls.Add(litHello);</div>
<p><a href="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step7.jpg"  target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Create the mobile (adapter) version of our web part" src="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step7_thumb.jpg" border="0" alt="Create the mobile (adapter) version of our web part" width="240" height="192" /></a></p>
<p><strong>Add the adapter to the safe controls</strong></p>
<p>SharePoint should know that the adapter web part is a safe control. We did not have to add the normal web part as safe control, because the project template already fixed this for use. However, we still have to add the mobile version.</p>
<p>Open the web.config file of your SharePoint IIS site (example: C:\inetpub\wwwroot\wss\VirtualDirectories\80) and add the line below into the safecontrols section. Replace the PublicKeyToken with your own key!</p>
<div class="code">&lt;SafeControl Assembly=&#8221;MobileWebPartDemo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=41167d0e1c5a217f&#8221; namespace=&#8221;MobileWebPartDemo.SharePoint.WebPartPages.MobileAdapters&#8221; TypeName=&#8221;*&#8221; Safe=&#8221;True&#8221; SafeAgainstScript=&#8221;False&#8221; /&gt;</div>
<p><strong>Configure the compat.browser file to use our mobile web part</strong></p>
<p>SharePoint must be told that there is a mobile optimized version available for our web part. Basically we are going to tell SharePoint that if there is web part “Normal” on the page, it should load version “Mobile”. Without this configuration SharePoint would just strip our web part like before.</p>
<p>Inside your SharePoint IIS directory you will see a directory “App_Browsers” and inside that directory is a file called “compat.browser”. Load this file in the editor.</p>
<p>At the top of this file you will find a “controlAdapters” section. Add the line below to this section:</p>
<div class="code">&lt;adapter controlType=&#8221;MobileWebPartDemo.VisualWebPart1.VisualWebPart1, MobileWebPartDemo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=41167d0e1c5a217f&#8221; adapterType=&#8221;MobileWebPartDemo.SharePoint .WebPartPages.MobileAdapters.VisualWebPart1MobileAdapter, MobileWebPartDemo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=41167d0e1c5a217f&#8221; /&gt;</div>
<p>Again, replace the PublicKeyToken with your own key! Safe the configuration and exit the file.</p>
<p><a href="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step8.jpg"  target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Configure the compat.browser file to use our mobile web part" src="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step8_thumb.jpg" border="0" alt="Configure the compat.browser file to use our mobile web part" width="240" height="184" /></a></p>
<p><strong>Rebuild the project and reload the mobile demo site</strong></p>
<p>We finished the required steps to provide SharePoint with a web part that is optimized for the mobile page. Press F5 to build and deploy our project and re-open the mobile view of our demo site. And wow it’s almost magic! The title of our web part has suddenly appeared.</p>
<p><a href="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step9.jpg"  target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Rebuild the project and reload the mobile demo site" src="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step9_thumb.jpg" border="0" alt="Rebuild the project and reload the mobile demo site" width="134" height="320" /></a></p>
<p><strong>Expand the web part</strong></p>
<p>To keep the mobile screen as empty as possible, not all web parts are automatically visible. Just click the title of the web part and it will be rendered.</p>
<p><a href="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step10.jpg"  target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Expand the web part" src="http://edwin.vriethoff.net/wp-content/sp2010mobiledev_step10_thumb.jpg" border="0" alt="Expand the web part" width="134" height="320" /></a></p>
<p>And that’s it. This is all the information required to start developing web parts for the SharePoint Mobile pages. Enjoy!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=FNI5yO0P_ew:XUsfT8zEex4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=FNI5yO0P_ew:XUsfT8zEex4:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?i=FNI5yO0P_ew:XUsfT8zEex4:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=FNI5yO0P_ew:XUsfT8zEex4:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=FNI5yO0P_ew:XUsfT8zEex4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?i=FNI5yO0P_ew:XUsfT8zEex4:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/EdwinDotNet/~4/FNI5yO0P_ew" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2010/01/17/sharepoint-2010-mobile-web-part-development/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://edwin.vriethoff.net/2010/01/17/sharepoint-2010-mobile-web-part-development/</feedburner:origLink></item>
		<item>
		<title>SharePoint federated search may cause performance problems because of default settings</title>
		<link>http://feedproxy.google.com/~r/EdwinDotNet/~3/ULTVOH5gJdo/</link>
		<comments>http://edwin.vriethoff.net/2009/09/09/sharepoint-federated-search-may-cause-performance-problems-because-of-default-settings/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 09:16:45 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Federated]]></category>
		<category><![CDATA[Infrastructure update]]></category>
		<category><![CDATA[Opensearch]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[Slow]]></category>
		<category><![CDATA[Timeout]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/?p=290</guid>
		<description><![CDATA[My colleague Vincent Boer has been working very hard at one of our clients to sort out a performance problem at their SharePoint Intranet portal. 
The problem was that after a search in the search center was performed, the browser would not navigate any further for 1 or 2 minutes. Finally this blog of Sourav [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://edwin.vriethoff.net/wp-content/slow_search.jpg" alt="slow SharePoint search" title="slow SharePoint search" width="117" height="90" align="right" />My colleague Vincent Boer has been working very hard at one of our clients to sort out a performance problem at their SharePoint Intranet portal. </p>
<p>The problem was that after a search in the search center was performed, the browser would not navigate any further for 1 or 2 minutes. Finally <a href="http://blogs.msdn.com/souravd/archive/2009/03/04/slow-search-result-after-infrastructure-update.aspx" onclick="javascript:pageTracker._trackPageview('/outbound/article/blogs.msdn.com');" target="_blank">this</a> blog of Sourav provided the right solution. </p>
<p>Since the Infrastructure update, search has been extended with Federated search. The default setting for the federated search results, is to query the online OpenSearch for results. This is fine as long as the web server has internet access, but if internet access is restricted, performance problems will occur in the SharePoint environment. The solution is to alter the configuration and set Federated Search to use the local Index. Basically you&#8217;ll have to decide if you would like to use OpenSearch and enable internet access for the server, or keep it locked and use the classic index.</p>
<p>Somehow Microsoft did not include any clear instructions with the Infrastructure update about this new default setting and possible implications for non internet enabled servers. If your Search center is experiencing performance issues, check out Sourav&#8217;s blog posting for a possible solution and detailed steps to solve it.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=ULTVOH5gJdo:7Oxltac2tf4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=ULTVOH5gJdo:7Oxltac2tf4:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?i=ULTVOH5gJdo:7Oxltac2tf4:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=ULTVOH5gJdo:7Oxltac2tf4:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=ULTVOH5gJdo:7Oxltac2tf4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?i=ULTVOH5gJdo:7Oxltac2tf4:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/EdwinDotNet/~4/ULTVOH5gJdo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2009/09/09/sharepoint-federated-search-may-cause-performance-problems-because-of-default-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://edwin.vriethoff.net/2009/09/09/sharepoint-federated-search-may-cause-performance-problems-because-of-default-settings/</feedburner:origLink></item>
		<item>
		<title>ContentQuery Web Part xsl script to view all available values</title>
		<link>http://feedproxy.google.com/~r/EdwinDotNet/~3/yyZ4lRAwN8U/</link>
		<comments>http://edwin.vriethoff.net/2009/05/26/contentquery-web-part-xsl-script-to-view-all-available-values/#comments</comments>
		<pubDate>Tue, 26 May 2009 10:58:50 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[ItemStyle]]></category>
		<category><![CDATA[XSL]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/?p=282</guid>
		<description><![CDATA[I&#8217;m often using the following xsl template script to check the available values and items which are available for the Content Query Web Part.
 This script can be added to the itemstyle.xsl for use. I&#8217;m always copying it from older projects, so now it&#8217;s on my blog for faster access  

&#60;xsl:template name=&#8221;TestView&#8221; match=&#8221;Row[@Style='TestView']&#8221; mode=&#8221;itemstyle&#8221;&#62;
&#160;&#60;xsl:for-each [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://edwin.vriethoff.net/wp-content/coding.jpg" alt="ContentQuery xsl script to view all available values" title="ContentQuery xsl script to view all available values" width="200" height="90" align="left"/>I&#8217;m often using the following xsl template script to check the available values and items which are available for the Content Query Web Part.</p>
<p> This script can be added to the itemstyle.xsl for use. I&#8217;m always copying it from older projects, so now it&#8217;s on my blog for faster access <img src='http://edwin.vriethoff.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="code">
&lt;xsl:template name=&#8221;TestView&#8221; match=&#8221;Row[@Style='TestView']&#8221; mode=&#8221;itemstyle&#8221;&gt;<br />
&nbsp;&lt;xsl:for-each select=&#8221;@*&#8221;&gt;<br />
&nbsp;&nbsp;ITEM:<br />
&nbsp;&nbsp;&lt;xsl:value-of select=&#8221;name()&#8221; /&gt;<br />
&nbsp;&nbsp;VALUE:<br />
&nbsp;&nbsp;&lt;xsl:value-of select=&#8221;.&#8221; /&gt;<br />
&nbsp;&nbsp;&lt;BR /&gt;<br />
&nbsp;&lt;/xsl:for-each&gt;<br />
&nbsp;&lt;BR /&gt;<br />
&nbsp;&lt;BR /&gt;<br />
&lt;/xsl:template&gt;
</div>
<p><BR/></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=yyZ4lRAwN8U:IKtQrrZnvc8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=yyZ4lRAwN8U:IKtQrrZnvc8:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?i=yyZ4lRAwN8U:IKtQrrZnvc8:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=yyZ4lRAwN8U:IKtQrrZnvc8:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=yyZ4lRAwN8U:IKtQrrZnvc8:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?i=yyZ4lRAwN8U:IKtQrrZnvc8:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/EdwinDotNet/~4/yyZ4lRAwN8U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2009/05/26/contentquery-web-part-xsl-script-to-view-all-available-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://edwin.vriethoff.net/2009/05/26/contentquery-web-part-xsl-script-to-view-all-available-values/</feedburner:origLink></item>
		<item>
		<title>SharePoint SP2 activates 180 day trial countdown</title>
		<link>http://feedproxy.google.com/~r/EdwinDotNet/~3/m99MhzoUiBc/</link>
		<comments>http://edwin.vriethoff.net/2009/05/22/sharepoint-sp2-activates-180-day-trial-countdown/#comments</comments>
		<pubDate>Fri, 22 May 2009 07:21:47 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[180 days]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[countdown]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[service pack]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/?p=272</guid>
		<description><![CDATA[The Microsoft SharePoint Team announced that the SharePoint SP2 service pack by mistake activates a 180-day countdown.
&#8220;During the installation of SP2, a product expiration date is improperly activated. This means SharePoint will expire as though it was a trial installation 180 days after SP2 is deployed. The activation of the expiration date will not affect [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://edwin.vriethoff.net/wp-content/repairman.jpg" alt="SharePoint SP2 activates 180 day trial countdown" title="SharePoint SP2 activates 180 day trial countdown" width="160" height="127" align="left" />The Microsoft SharePoint Team announced that the SharePoint SP2 service pack by mistake activates a 180-day countdown.</p>
<p>&#8220;During the installation of SP2, a product expiration date is improperly activated. This means SharePoint will expire as though it was a trial installation 180 days after SP2 is deployed. The activation of the expiration date will not affect the normal function of SharePoint up until the expiration date passes. Furthermore, product expiration 180 days after SP2 installation will not affect customer’s data, configuration or application code but will render SharePoint inaccessible for end-users.&#8221;</p>
<p>The team is working as hard as possible to release a hotfix to address the issue. </p>
<p>The Work around is also known: Re-enter the Product ID numbers on the Convert License Type page in Central Administration.</p>
<p>More information at <a href="http://blogs.msdn.com/sharepoint/archive/2009/05/21/attention-important-information-on-service-pack-2.aspx" onclick="javascript:pageTracker._trackPageview('/outbound/article/blogs.msdn.com');" target="_blank">the Microsoft SharePoint team</a> site.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=m99MhzoUiBc:F1fpk1GQPOo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=m99MhzoUiBc:F1fpk1GQPOo:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?i=m99MhzoUiBc:F1fpk1GQPOo:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=m99MhzoUiBc:F1fpk1GQPOo:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=m99MhzoUiBc:F1fpk1GQPOo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?i=m99MhzoUiBc:F1fpk1GQPOo:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/EdwinDotNet/~4/m99MhzoUiBc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2009/05/22/sharepoint-sp2-activates-180-day-trial-countdown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://edwin.vriethoff.net/2009/05/22/sharepoint-sp2-activates-180-day-trial-countdown/</feedburner:origLink></item>
		<item>
		<title>Enable item scheduling by code</title>
		<link>http://feedproxy.google.com/~r/EdwinDotNet/~3/FhTciZNWJ1M/</link>
		<comments>http://edwin.vriethoff.net/2009/05/18/enable-item-scheduling-by-code/#comments</comments>
		<pubDate>Mon, 18 May 2009 19:29:48 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[item]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[reflector]]></category>
		<category><![CDATA[Schedule]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/?p=246</guid>
		<description><![CDATA[I’m developing a site template, which requires item scheduling on the page library. I don’t want our users to enable the item scheduling manually at the “_layouts/ ManageItemScheduling.aspx” page. Unfortunately I was not able to find any online documentation about how to do this with code. 
It required me to dig deeper and .Net reflector [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://edwin.vriethoff.net/wp-content/scheduletime.jpg" alt="Enable item scheduling by codee" title="Enable item scheduling by code" width="160" height="137" align="right" />I’m developing a site template, which requires item scheduling on the page library. I don’t want our users to enable the item scheduling manually at the “_layouts/ ManageItemScheduling.aspx” page. Unfortunately I was not able to find any online documentation about how to do this with code. </p>
<p>It required me to dig deeper and <a href="http://www.red-gate.com/products/reflector/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.red-gate.com');" target="_blank">.Net reflector</a> turned out to be the right way to go. Microsoft made a lot of the required functions internal, which means that we cannot access the functions from our own code. By analyzing the steps I was able to add item scheduling on the pages library with the code below. </p>
<p><strong>Step 1: Enable Moderation and Minor versions</strong><br />
To allow item scheduling, we must enable moderation and minor versions on the pages list.</p>
<div class="code">
SPWeb web = new SPSite(&#8221;http://web&#8221;).OpenWeb();<br />
SPList list = web.Lists["Pages"];</p>
<p>//Enable moderation and minor versions<br />
list.EnableModeration = true;<br />
list.EnableMinorVersions = true;<br />
list.Update();
</p></div>
<p><strong>Step 2: Register Scheduling Events</strong><br />
The item scheduling requires us to register 2 events.<br />
First we will retrieve the assembly and class information of the ScheduledItemEventReceiver and then we will create the 2 events.</p>
<div class="code">
//get type information<br />
Type scheduledItemType = typeof(Microsoft.SharePoint.Publishing.Internal.ScheduledItemEventReceiver);<br />
string assemblyName = scheduledItemType.Assembly.FullName.ToString();<br />
string className = scheduledItemType.FullName;</p>
<p>//Get the eventreceivers<br />
SPEventReceiverDefinitionCollection eventReceivers = list.EventReceivers;</p>
<p>//Register the updating event<br />
SPEventReceiverDefinition updateDef = eventReceivers.Add();<br />
updateDef.Name = &#8220;Item Updating Event Handler For Scheduling&#8221;;<br />
updateDef.Type = SPEventReceiverType.ItemUpdating;<br />
updateDef.Assembly = assemblyName;<br />
updateDef.Class = className;<br />
updateDef.Update();</p>
<p>//Register the added event<br />
SPEventReceiverDefinition addDef = eventReceivers.Add();<br />
addDef.Name = &#8220;Item Added Event Handler For Scheduling&#8221;;<br />
addDef.Type = SPEventReceiverType.ItemAdded;<br />
addDef.Assembly = assemblyName;<br />
addDef.Class = className;<br />
addDef.Update();
</p></div>
<p><strong>Step 3: Unhide the startdate and expirydate fields</strong><br />
The list already contains the startdate and expirydate fields, but they are hidden. With the following code we will unhide the fields.</p>
<div class="code">
//Get the field guids of the startdate and expirydate<br />
Guid startDateGuid = Microsoft.SharePoint.Publishing.FieldId.StartDate;<br />
Guid expiryDateGuid = Microsoft.SharePoint.Publishing.FieldId.ExpiryDate;</p>
<p>//update the visibility of the startdate<br />
SPField startDateField = list.Fields[startDateGuid];<br />
startDateField.Hidden = false;<br />
startDateField.Update();</p>
<p>//update the visibility of the expirydate<br />
SPField expiryDateField = list.Fields[expiryDateGuid];<br />
expiryDateField.Hidden = false;<br />
expiryDateField.Update();
</p></div>
<p>And that’s it. With these coding steps we enabled item scheduling at the Page library.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=FhTciZNWJ1M:uDne7uvhKdI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=FhTciZNWJ1M:uDne7uvhKdI:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?i=FhTciZNWJ1M:uDne7uvhKdI:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=FhTciZNWJ1M:uDne7uvhKdI:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EdwinDotNet?a=FhTciZNWJ1M:uDne7uvhKdI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EdwinDotNet?i=FhTciZNWJ1M:uDne7uvhKdI:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/EdwinDotNet/~4/FhTciZNWJ1M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2009/05/18/enable-item-scheduling-by-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://edwin.vriethoff.net/2009/05/18/enable-item-scheduling-by-code/</feedburner:origLink></item>
	</channel>
</rss>
