Monthly Archives: September 2009
Advanced SharePoint file filtering
Whether for audit or to enforce policy, file filtering is an excellent tool. With SharePoint you can specify the list of files you want to be blocked and not really do any audit on already uploaded files. Also, when users … Continue reading
Trying to use an SPWeb object that has been closed or disposed
Almost anytime you`re creating custom sharepoint components or anything else that will require do write some custom code you create and work with SPWeb and SPSite objects. We all know we`re supposed to dispose those after usage, but here is … Continue reading
Changing SharePoint page layout type once it’s deployed
Here is the scenario: you have deployed several SharePoint layouts and page inheriting them. For example: one column layout, two column and three column layout. Let’s say one of the layout displays left nav and other ones don’t. What is … Continue reading
Enabling approval on pages in SharePoint Publishing scenario
Sometimes, you may forget to tunr off SimpleApproval in your onet.xml < Property Key=“SimplePublishing“ Value=“false“ /> Which in this case will just enable user to click on Publish rather than Submit for Approval button in order to publish … Continue reading
Validating asp:CheckBoxList with asp:CustomValidator
When creating user controls and pages you probably make a heavy use of client side validators to ensure user has entered valid values. There is few out of the box visual studio validators such as asp:RequiredFieldValidator etc, but none of … Continue reading
Provisioning document libraries with folders and items in them
When provisioning content to the site – sometimes you may need to provision document libraries with folders and files in those folders. In here I’ll demonstrate how to do that using my web-scoped feature. Feature.XML <?xml version=”1.0″ encoding=”utf-8″?> <Feature xmlns=”http://schemas.microsoft.com/sharepoint/” Id=”xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx” Title=”My … Continue reading