Author Archives: Bernado

Unknown's avatar

About Bernado

Based in Australia, I am a freelance SharePoint and Dynamics CRM developer. I love developing innovative solutions that address business and everyday problems. Feel free to contact me if you think I can help you with your SharePoint or CRM implementation.

Data validation in publishing pages in SharePoint 2010

Like many things in SharePoint – this should be simple but turns out it is not. I had a requirement to ensure that a DateTime field (Next Review Date) on the page is equal to or greater than the current … Continue reading

Posted in Page Layout, SharePoint 2010 | Leave a comment

Custom PortalSiteMapDataSource to display full site structure in left navigation in SharePoint

I had a requirement to ensure that all sites within the site collection would display the full site structure (up to the 1st level sub-site) on the left navigation. Given the site structure below for example: For any site underneath … Continue reading

Posted in Branding, SharePoint 2010, Uncategorized | 1 Comment

Gotcha when working with master pages and page layouts in SharePoint Designer and Visual Studio

A common thing to do when editing master pages and page layouts in SharePoint is to edit them in SPD and then copy the source code to Visual Studio for check-in to source control. There is a gotcha here. When … Continue reading

Posted in Branding, SharePoint 2010, SharePoint Designer | Leave a comment

Woohoo! I’m now certified!

..in SharePoint 2010 Application Development :). Just passed the TS 70-573 exam. Next in sight is the MCPD in SharePoint 2010 app dev :).

Posted in Stuffs | 2 Comments

Making web requests to external sites from SharePoint

In most enterprise settings you will need to go through a proxy server to connect to external sites. In Windows the proxy settings in IE actually affects the apps on that machine. If you write a console app to test … Continue reading

Posted in SharePoint | 2 Comments

IgnoreIfAlreadyExists attribute when provisioning files in SharePoint

The IgnoreIfAlreadyExists attribute of a File element when provisioning a file can be mysterious. Most of the posts on the net are saying that: When this attribute is set to FALSE, an error will be thrown if the file already … Continue reading

Posted in SharePoint 2010 | 1 Comment

Should I call Dispose on SPWeb.ParentWeb?

I was coding away and wondered if I should call Dispose the parentWeb object below? I found some official guidance on this and thought I’d blog it here, partly to help jolt my memory later on. The short answer is: … Continue reading

Posted in SharePoint 2010 | Leave a comment

Weird rendering behaviour in SharePoint with self-closing DIV tags

I was doing branding in SharePoint 2010 and noticed that SharePoint will render elements declared after a self-closing DIV as children of that DIV. So, if my master page has something like this: The page will be rendered as: Changing … Continue reading

Posted in Branding, SharePoint | Leave a comment

Weird error deploying SharePoint workflow using Visual Studio

It was working all fine, until one day I started getting the error below when deploying the workflow using Visual Studio: Error occurred in deployment step ‘Activate Features’: Unable to locate the workflow’s association data. To restore the association data to … Continue reading

Posted in Visual Studio 2010, Workflow | Leave a comment

‘WARNING: Template is not found and is not applied’ when using custom WebTemplate with PowerShell

WebTemplate is the new way of doing site definitions in SP2010 (see this for a good overview: http://sharepointchick.com/archive/0001/01/01/site-definitions-vs.-webtemplates.aspx). Where you need to refer to the custom WebTemplate, you’d use the ‘{FeatureID}#WebTemplateName’ syntax, e.g: {56C8E551-565B-482A-A038-CCC18A878607}#MyWebTemplate I however have found that this does … Continue reading

Posted in PowerShell, SharePoint 2010, WebTemplate | 4 Comments