Setting the MasterPage during feature activation sometimes works but not always?

One of my current projects had the requirement to modify certain properties of the SharePoint “Look and feel”. 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. […]

[Reminder] How-to add a custom usercontrol with the SharePoint Designer

Open the desired page (e.g. DispForm.aspx) with the SharePoint Designer and add the following code below the initial “<%@ statements”: <%@ Register TagPrefix="MyNamePrefix" TagName="MyNameForTheControl" Src="~/_controltemplates/MyCustomControls/MyCurrentlyUsedControl.ascx" %><%@ Register TagPrefix="MyNamePrefix" TagName="MyNameForTheControl" Src="~/_controltemplates/MyCustomControls/MyCurrentlyUsedControl.ascx" %> Now add this code where the control should appear in the final rendered page: <MyNamePrefix:MyNameForTheControl ID="MyNameForTheControl" runat="server" /><MyNamePrefix:MyNameForTheControl ID="MyNameForTheControl" runat="server" /> Thats it! Of […]