<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>entwicklungsgedanken &#187; custom</title>
	<atom:link href="http://www.entwicklungsgedanken.de/tag/custom/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.entwicklungsgedanken.de</link>
	<description>Verschiedene Gedanken rund um die Softwareentwicklung</description>
	<lastBuildDate>Thu, 29 Jul 2010 11:09:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Setting the MasterPage during feature activation sometimes works but not always?</title>
		<link>http://www.entwicklungsgedanken.de/2008/07/23/setting-the-masterpage-during-feature-activation-sometimes-works-but-not-always/</link>
		<comments>http://www.entwicklungsgedanken.de/2008/07/23/setting-the-masterpage-during-feature-activation-sometimes-works-but-not-always/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 11:53:08 +0000</pubDate>
		<dc:creator>Eric Bartels</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint-Development]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[feature]]></category>
		<category><![CDATA[masterpage]]></category>

		<guid isPermaLink="false">http://www.entwicklungsgedanken.de/?p=57</guid>
		<description><![CDATA[One of my current projects had the requirement to modify certain properties of the SharePoint &#8220;Look and feel&#8221;. To make updates and improvements easy I created a custom masterpage which is provisioned via a Feature. A custom feature receiver takes care of setting the masterpage and a feature staple takes care of newly created webs. [...]]]></description>
			<content:encoded><![CDATA[<p>
One of my current projects had the requirement to modify certain properties of the SharePoint &#8220;Look and feel&#8221;.</p>
<p>
To make updates and improvements easy I created a custom masterpage which is provisioned via a Feature. A custom feature receiver takes care of setting the masterpage and a feature staple takes care of newly created webs.
</p>
<h3>Strange things</h3>
<p>
This works well &#8230; Well mostly. In some existing webs my custom masterpage is simply not attached.
</p>
<h3>Solution</h3>
<p>If you set the <code>SPWeb.MasterUrl</code> do not forget to set the <code>SPWeb.CustomMasterUrl</code>, too!</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">// web = SPWeb</span>
web.<span style="color: #0000FF;">MasterUrl</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;myPath/to/my.master&quot;</span><span style="color: #008000;">;</span>
web.<span style="color: #0000FF;">CustomMasterUrl</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;myPath/to/my.master&quot;</span><span style="color: #008000;">;</span></pre></div></div>

<p>
Now my masterpage is attached and used as desired.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklungsgedanken.de/2008/07/23/setting-the-masterpage-during-feature-activation-sometimes-works-but-not-always/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Reminder] How-to add a custom usercontrol with the SharePoint Designer</title>
		<link>http://www.entwicklungsgedanken.de/2008/01/13/reminder-how-to-add-a-custom-usercontrol-with-the-sharepoint-designer/</link>
		<comments>http://www.entwicklungsgedanken.de/2008/01/13/reminder-how-to-add-a-custom-usercontrol-with-the-sharepoint-designer/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 11:44:07 +0000</pubDate>
		<dc:creator>Eric Bartels</dc:creator>
				<category><![CDATA[SharePoint-Development]]></category>
		<category><![CDATA[Verschiedenes]]></category>
		<category><![CDATA[ascx]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[register]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[usercontrol]]></category>

		<guid isPermaLink="false">http://www.entwicklungsgedanken.de/2008/01/13/reminder-how-to-add-a-custom-usercontrol-with-the-sharepoint-designer/</guid>
		<description><![CDATA[Open the desired page (e.g. DispForm.aspx) with the SharePoint Designer and add the following code below the initial &#8220;&#60;%@ statements&#8221;: &#60;%@ Register TagPrefix=&#34;MyNamePrefix&#34; TagName=&#34;MyNameForTheControl&#34; Src=&#34;~/_controltemplates/MyCustomControls/MyCurrentlyUsedControl.ascx&#34; %&#62; Now add this code where the control should appear in the final rendered page: &#60;MyNamePrefix:MyNameForTheControl ID=&#34;MyNameForTheControl&#34; runat=&#34;server&#34; /&#62; Thats it! Of course your user control must be placed in [...]]]></description>
			<content:encoded><![CDATA[<div class="lang-en"></div>
<p>Open the desired page (e.g. DispForm.aspx) with the SharePoint Designer and add the following code below the initial &#8220;&lt;%@ statements&#8221;:</p>

<div class="wp_syntax"><div class="code"><pre class="asp" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;%</span><span style="color: #006600; font-weight: bold;">@</span> Register TagPrefix<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;MyNamePrefix&quot;</span> TagName<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;MyNameForTheControl&quot;</span>
Src<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;~/_controltemplates/MyCustomControls/MyCurrentlyUsedControl.ascx&quot;</span> <span style="color: #000000; font-weight: bold;">%&gt;</span></pre></div></div>

<p>Now add this code where the control should appear in the final rendered page:</p>

<div class="wp_syntax"><div class="code"><pre class="asp" style="font-family:monospace;"><span style="color: #006600; font-weight: bold;">&lt;</span>MyNamePrefix<span style="color: #006600; font-weight: bold;">:</span>MyNameForTheControl ID<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;MyNameForTheControl&quot;</span> runat<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;server&quot;</span> <span style="color: #006600; font-weight: bold;">/&gt;</span></pre></div></div>

<p>Thats it!</p>
<p>
Of course your user control must be placed in the <em>TEMPLATE/CONTROLTEMPLATES</em> folder (<em>TEMPLATE/CONTROLTEMPLATES/MyCustomControls</em> in this case) of your frontend server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklungsgedanken.de/2008/01/13/reminder-how-to-add-a-custom-usercontrol-with-the-sharepoint-designer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
