<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><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: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>
	<pubDate>Sun, 12 Oct 2008 07:27:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/EdwinDotNet" type="application/rss+xml" /><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.rojo.com/add-subscription?resource=http%3A%2F%2Ffeeds.feedburner.com%2FEdwinDotNet" src="http://blog.rojo.com/RojoWideRed.gif">Subscribe with Rojo</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>Connecting web parts: The easy way</title>
		<link>http://feeds.feedburner.com/~r/EdwinDotNet/~3/415878331/</link>
		<comments>http://edwin.vriethoff.net/2008/10/09/connecting-web-parts-the-easy-way/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 15:38:55 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Sharepoint]]></category>

		<category><![CDATA[code example]]></category>

		<category><![CDATA[connect]]></category>

		<category><![CDATA[consumer]]></category>

		<category><![CDATA[interface]]></category>

		<category><![CDATA[provider]]></category>

		<category><![CDATA[string value]]></category>

		<category><![CDATA[web part]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/?p=131</guid>
		<description><![CDATA[Exactly one year ago (and wow I did not time this!) I posted a blog about &#8220;Connecting a web part with a standard SharePoint list&#8221;. For my current project I had to develop 2 web parts that could connect with each other.  
Since Moss2007 you can implement your own connection interface which enables you [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://edwin.vriethoff.net/wp-content/connecting_webparts_the_easy_way.jpg" alt="Connecting web parts the easy way" align="left" style="margin-right:12px;" />Exactly one year ago (and wow I did not time this!) I posted a blog about <a href="/2007/10/09/connecting-a-web-part-with-a-standard-sharepoint-list/" target="_blank">&#8220;Connecting a web part with a standard SharePoint list&#8221;</a>. For my current project I had to develop 2 web parts that could connect with each other.  </p>
<p>Since Moss2007 you can implement your own connection interface which enables you to connect customized web parts. It looks like you can basically transfer any serializable information. </p>
<p>The first thing you have to do is to define a very simple interface. The second step is to inherit the interface at the web part class that sends the information. In this class you&#8217;ll have to assign the interface as the connection interface. The last step in the provider web part is to include the &#8220;get function&#8221; described by the interface to pass the value.</p>
<p>In our consumer web part we have to retrieve the connection interface. Once this connection has been setup we can read and use the given value.</p>
<p>In the example code we will use the interface with the name &#8220;IMossStringConnection&#8221; to pass a string value.</p>
<p><span id="more-131"></span>Our web part and interface that provides our custom value:</p>
<div class="code">
namespace Sample.Code<br />
{<br />
&nbsp;/// <summary><br />
&nbsp;/// Our custom interface<br />
&nbsp;/// </summary><br />
&nbsp;public interface IMossStringConnection<br />
&nbsp;{<br />
&nbsp;&nbsp;string ProvidedString { get;}<br />
&nbsp;}</p>
<p>&nbsp;/// <summary><br />
&nbsp;/// Web Part Class<br />
&nbsp;/// </summary><br />
&nbsp;public class ProviderWebPart : WebPartBase, IMossStringConnection<br />
&nbsp;{<br />
&nbsp;&nbsp;&#8230;.WEB PART CODE&#8230;.</p>
<p>&nbsp;&nbsp;//We start our connection provider here. The property name is the name <br/>&nbsp;&nbsp;SharePoint will show in the connection menu (Called UserID in our image<br/>&nbsp;&nbsp;example).<br />
&nbsp;&nbsp;[ConnectionProvider("PropertyName")]<br />
&nbsp;&nbsp;public IMossStringConnection ConnectionInterface()<br />
&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;return this;<br />
&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;//function to provide our value<br />
&nbsp;&nbsp;public string ProvidedString<br />
&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;get<br />
&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return &#8220;Example value&#8221;;<br />
&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;}<br />
&nbsp;}<br />
}
</p></div>
<p><img src="http://edwin.vriethoff.net/wp-content/provider_and_consumer_web_part.jpg" alt="The web part shows the property name (UserID) in the connection menu." /></p>
<p>And here is the code for the web part that consumes the provided value:</p>
<div class="code">
namespace Sample.Code<br />
{<br />
&nbsp;/// <summary><br />
&nbsp;/// Web Part to consume the value<br />
&nbsp;/// </summary><br />
&nbsp;public class ConsumerWebPart : WebPartBase<br />
&nbsp;{<br />
&nbsp;&nbsp;&#8230;.WEB PART CODE&#8230;.</p>
<p>&nbsp;&nbsp;IMossStringConnection m_providerPart = null;</p>
<p>&nbsp;&nbsp;/// <summary><br />
&nbsp;&nbsp;/// Encapsulate the interface<br />
&nbsp;&nbsp;/// </summary><br />
&nbsp;&nbsp;public IMossStringConnection ProviderPart<br />
&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;get { return m_providerPart; }<br />
&nbsp;&nbsp;&nbsp;set { m_providerPart = value; }<br />
&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;//We start our connection consumer here. The property name is the name<br/>&nbsp;&nbsp;SharePoint will show in the connection menu (Called UserID in our image<br/>&nbsp;&nbsp;example).<br />
&nbsp;&nbsp;[ConnectionConsumer("Property")]<br />
&nbsp;&nbsp;public void GetConnectionInterface(IMossStringConnection providerPart)<br />
&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;ProviderPart = providerPart;<br />
&nbsp;&nbsp;&nbsp;//Now we can retrieve the value of the other web part<br />
&nbsp;&nbsp;&nbsp;string retrieveValue = ProviderPart.ProvidedString;<br />
&nbsp;&nbsp;}<br />
&nbsp;}<br />
}
</div>
<p>And that&#8217;s basically all the code you need to implement. Just copy and paste it in your web parts and have some fun!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=UvMrM"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=UvMrM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=TwCQm"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=TwCQm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=qmJoM"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=qmJoM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=TFyWm"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=TFyWm" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/EdwinDotNet/~4/415878331" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2008/10/09/connecting-web-parts-the-easy-way/feed/</wfw:commentRss>
		<feedburner:origLink>http://edwin.vriethoff.net/2008/10/09/connecting-web-parts-the-easy-way/</feedburner:origLink></item>
		<item>
		<title>Don’t use dashes (-) in a custom site definition folder name</title>
		<link>http://feeds.feedburner.com/~r/EdwinDotNet/~3/413795962/</link>
		<comments>http://edwin.vriethoff.net/2008/10/07/dont-use-dashes-in-a-custom-site-definition-folder-name/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 13:15:24 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
		
		<category><![CDATA[Errors]]></category>

		<category><![CDATA[Sharepoint]]></category>

		<category><![CDATA[character]]></category>

		<category><![CDATA[custom]]></category>

		<category><![CDATA[dash]]></category>

		<category><![CDATA[definition]]></category>

		<category><![CDATA[directory]]></category>

		<category><![CDATA[folder]]></category>

		<category><![CDATA[layout]]></category>

		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/?p=128</guid>
		<description><![CDATA[For a project we designed a new site definition which used the following directory:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates\SiteDefinition-Customer.Project.Moss2007.Portal.SupportSite
There was no problem at all to create a new site based on this template, but after a while we experienced a problem in a different area.
As you might know it is possible at the &#8220;Page Layout [...]]]></description>
			<content:encoded><![CDATA[<p>For a project we designed a new site definition which used the following directory:<br />
<font style="color: #2588ED;">C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates\SiteDefinition-Customer.Project.Moss2007.Portal.SupportSite</font><br />
There was no problem at all to create a new site based on this template, but after a while we experienced a problem in a different area.</p>
<p>As you might know it is possible at the <font style="color: #2588ED;">&#8220;Page Layout and Site Template Settings&#8221;</font> page (/_Layouts/AreaTemplateSettings.aspx) to limit the selectable site templates for the user. Somehow SharePoint did not allow us to set our own template as only selectable template. After we saved the page, it would simply switch back to the previous known settings.</p>
<p><img src="http://edwin.vriethoff.net/wp-content/page_layout_and_site_template_settings.jpg" alt="page_layout_and_site_template_settings_and_dashes" /></p>
<p>After a lot of research, I finally managed to solve the problem by removing the - sign from the directory name. It looks like SharePoint does some kind of internal split function at the <font style="color: #2588ED;">&#8220;Page Layout and Site Template Settings&#8221;</font> page, which makes it impossible to save settings for site templates with a dash in the folder name.</p>
<p>To prevent any trouble with your custom site definitions, make sure you don&#8217;t use a - sign in the folder name or even better: only use alphabetic characters.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=9j9JM"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=9j9JM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=B4vZm"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=B4vZm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=dyLAM"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=dyLAM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=9F5hm"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=9F5hm" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/EdwinDotNet/~4/413795962" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2008/10/07/dont-use-dashes-in-a-custom-site-definition-folder-name/feed/</wfw:commentRss>
		<feedburner:origLink>http://edwin.vriethoff.net/2008/10/07/dont-use-dashes-in-a-custom-site-definition-folder-name/</feedburner:origLink></item>
		<item>
		<title>Once upon a time I was tagged for the blogging Meme</title>
		<link>http://feeds.feedburner.com/~r/EdwinDotNet/~3/409009919/</link>
		<comments>http://edwin.vriethoff.net/2008/10/02/once-upon-a-time-i-was-tagged-for-the-blogging-meme/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 07:05:31 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[blogging]]></category>

		<category><![CDATA[facts]]></category>

		<category><![CDATA[Meme]]></category>

		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/?p=126</guid>
		<description><![CDATA[A long time ago, on April 11, I was tagged for the blogging Meme by my colleague Mirjam. The blogging Meme is a concept that let&#8217;s bloggers share some random facts about themselves.
These are the &#8216;Meme rules&#8217;:

Each player starts with five (used to be eight) random facts/habits about themselves.
People who are tagged need to write [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://edwin.vriethoff.net/wp-content/facts.jpg" alt="Blogging Meme" title="Blogging Meme" width="130" height="104" align="left" />A long time ago, on April 11, I was tagged for the blogging Meme by my colleague <a href="http://www.sharepointblogs.com/mirjam/archive/2008/04/11/i-m-tagged-for-the-blogging-meme.aspx" target="_blank">Mirjam</a>. The blogging Meme is a concept that let&#8217;s bloggers share some random facts about themselves.</p>
<p><strong>These are the &#8216;Meme rules&#8217;:</strong></p>
<ul>
<li>Each player starts with five (used to be eight) random facts/habits about themselves.</li>
<li>People who are tagged need to write a post on their own blog (about their five things) and post these rules. </li>
<li>At the end of your blog, you need to choose five people to get tagged and list their names. </li>
<li>Don’t forget to leave them a comment telling them they’re tagged, and to read your blog. </li>
</ul>
<p><strong>So here are the 5 random facts / habits about me:</strong></p>
<ul>
<li>I just got engaged on 2008-8-8 at The Disney Magic Kingdom, Orlando</li>
<li>My favorite food type is Mexican</li>
<li>My car and my racing bicycle are Italian; I love to drive my 2001 Alfa Romeo 147 and I race on a Bianchi 1885 bicycle</li>
<li>I lived in Germany for 4 years</li>
<li>My favorite music artists are Phil Collins and Shakira</li>
</ul>
<p><strong>The 5 bloggers that I tag for the blogging Meme are:</strong></p>
<ul>
<li><a href="http://weblogs.asp.net/soever/default.aspx" target="_blank">Serge van den Oever</a></li>
<li><a href="http://www.vanotegem.nl/" target="_blank">Michiel van Otegem</a></li>
<li><a href="http://blogs.catapultsystems.com/matthew/" target="_blank">Matthew McDermott</a></li>
<li><a href="http://www.robertjantuit.nl/" target="_blank">Robertjan Tuit</a></li>
<li><a href="http://conducido.nl/blog/" target="_blank">Wouter Crooy</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=hDNbM"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=hDNbM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=3oXTm"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=3oXTm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=4RKcM"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=4RKcM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=Vgg3m"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=Vgg3m" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/EdwinDotNet/~4/409009919" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2008/10/02/once-upon-a-time-i-was-tagged-for-the-blogging-meme/feed/</wfw:commentRss>
		<feedburner:origLink>http://edwin.vriethoff.net/2008/10/02/once-upon-a-time-i-was-tagged-for-the-blogging-meme/</feedburner:origLink></item>
		<item>
		<title>Cannot make a cache safe URL for “init.js”.</title>
		<link>http://feeds.feedburner.com/~r/EdwinDotNet/~3/397087717/</link>
		<comments>http://edwin.vriethoff.net/2008/09/19/cannot-make-a-cache-safe-url-for-initjs/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 10:20:33 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
		
		<category><![CDATA[Errors]]></category>

		<category><![CDATA[Sharepoint]]></category>

		<category><![CDATA[language pack]]></category>

		<category><![CDATA[moss]]></category>

		<category><![CDATA[web application]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/?p=124</guid>
		<description><![CDATA[After a restore on a testing environment I bounced into the IIS error &#8220;Cannot make a cache safe URL for &#8220;init.js&#8221;, file not found. Please verify that the file exists under the layouts directory.&#8221;
You can check if the init.js file is no longer located in the layouts folder, but probably nothing is wrong with it.
It [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://edwin.vriethoff.net/wp-content/error-init-js.jpg" align="right" alt="Cannot make a cache safe URL for "init.js", file not found. Please verify that the file exists under the layouts directory" title="error-init-js" width="144" height="123" class="alignright size-full wp-image-125" />After a restore on a testing environment I bounced into the IIS error <font style="color:red;">&#8220;Cannot make a cache safe URL for &#8220;init.js&#8221;, file not found. Please verify that the file exists under the layouts directory.&#8221;</font></p>
<p>You can check if the init.js file is no longer located in the layouts folder, but probably nothing is wrong with it.</p>
<p>It turned out that the Dutch Moss language pack was not installed on the server, which was used by the restored web application.</p>
<p> If you ever bump into this error, make sure you have all the required language packs installed. After you fixed that, the site collection will be fine.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=bEOXL"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=bEOXL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=PdPIl"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=PdPIl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=b4ZnL"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=b4ZnL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=xWJhl"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=xWJhl" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/EdwinDotNet/~4/397087717" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2008/09/19/cannot-make-a-cache-safe-url-for-initjs/feed/</wfw:commentRss>
		<feedburner:origLink>http://edwin.vriethoff.net/2008/09/19/cannot-make-a-cache-safe-url-for-initjs/</feedburner:origLink></item>
		<item>
		<title>Writing values to a Moss2007 user profile</title>
		<link>http://feeds.feedburner.com/~r/EdwinDotNet/~3/376931970/</link>
		<comments>http://edwin.vriethoff.net/2008/08/28/writing-values-to-a-moss2007-user-profile/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 08:14:34 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
		
		<category><![CDATA[Sharepoint]]></category>

		<category><![CDATA[commit]]></category>

		<category><![CDATA[property]]></category>

		<category><![CDATA[user profile]]></category>

		<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/?p=122</guid>
		<description><![CDATA[It took me quite some time to figure out how to write information to a SharePoint user profile. The web seemed only full of examples about how to read information from profiles. At the MSDN site there is an example, but they are using the UserProfileService web service.
At the end it turned out to be [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://edwin.vriethoff.net/wp-content/write_to_profile.jpg" align="left" style="margin-right: 10px;"/>It took me quite some time to figure out how to write information to a SharePoint user profile. The web seemed only full of examples about how to read information from profiles. At the MSDN site there is <a href="http://msdn.microsoft.com/en-us/library/bb847941.aspx" target="_blank">an example</a>, but they are using the UserProfileService web service.</p>
<p>At the end it turned out to be very simple to update the values in a user profile: just update the value in the property and then do a Commit on the profile.</p>
<div class="code">
using (SPSite site = new SPSite(&#8221;http://sharepointsite&#8221;))<br />
{<br />
&nbsp;UserProfileManager uPMgr =<br />
&nbsp;new UserProfileManager(ServerContext.GetContext(site));<br />
&nbsp;UserProfile profile = uPMgr.GetUserProfile(&#8221;Administrator&#8221;);<br />
&nbsp;profile["WorkEmail"].Value = &#8220;newemail@address.com&#8221;;<br />
&nbsp;profile.Commit();<br />
}
</div>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=NiukJK"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=NiukJK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=yPVPek"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=yPVPek" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=VrQQXK"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=VrQQXK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/EdwinDotNet?a=CoUgtk"><img src="http://feeds.feedburner.com/~f/EdwinDotNet?i=CoUgtk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/EdwinDotNet/~4/376931970" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2008/08/28/writing-values-to-a-moss2007-user-profile/feed/</wfw:commentRss>
		<feedburner:origLink>http://edwin.vriethoff.net/2008/08/28/writing-values-to-a-moss2007-user-profile/</feedburner:origLink></item>
	</channel>
</rss>
