Writing a web part recently, I was attempting to set some default values for locale sensitive properties. I wanted them set early in the webpart lifecycle so I figured I’d do it in the web part constructor. Since they are locale sensitive I was using the SPUtility.GeLocalizedString method to fetch the value from resources. When … Continue reading Using the SharePoint Object Model in WebPart Constructor Causes Security Exception
Recently I’ve been customizing Content Query Web Parts (CQWP) whereby I override the query and supply my own CAML query. The basic steps involved in doing this are; Author the Web Part using the UI Export the Web Part using the UI Customize the Web Part .webpart file Import the customized Web Part back into … Continue reading SharePoint: Content Query Web Part Customizing the Query
Moving on from this post, you’ve developed a custom WebPart and you want to package it up for deployment to SharePoint (and you’re not using VSeWSS or WSPBuilder for some reason), or, you’ve customized an OOTB WebPart and want to package it up for reuse in a feature. Starting with your webpart description file, which … Continue reading Provision a WebPart using a SharePoint Feature.
The ContentEditorWebPart is a web part you can use to display arbitrary HTML and script output on a SharePoint WebPart page. On a project I’m working on, I provision various ASP.NET pages, features and so on into a site to customize it for the clients application needs. One thing I wanted was some kind of navigation … Continue reading Using the SharePoint Content Editor WebPart
Found here on Sharee’s blog.