I ran into a problem recently where I was attempting to update the permissions on an SPListItem within code but ran into the following error: Updates are currently disallowed on GET requests. To allow updates on a GET, set the ‘AllowUnsafeUpdates’ property on SPWeb. Now I’m quite familiar with this error, and it’s one of […]
Continue Reading →Understanding the Append Changes to Existing Text Option
Within a SharePoint list or library, you have the ability to add columns that are of type Multiple Lines of Text. Within the settings of this column, you are able to select whether or not you’d like to Append Changes to Existing Text. If you’re unsure, this setting is located in the Additional Column Settings […]
Continue Reading →SharePoint SPQuery Obtaining Distinct Results
To my knowledge (and someone please post and correct me if I’m wrong) there doesn’t seem to be a solid way to build an SPQuery object that can return distinct values from a list. I’ve seen some clever tricks for getting around this particular problem, but nothing quite like this. If you dig through this […]
Continue Reading →New SmartTools Release for SharePoint
Jan Tielens recently released a new version of the SmartTools that’s worth checking out. The TableRow highlight and jQuery additions in general are pretty exciting. http://weblogs.asp.net/jan/archive/2009/01/22/new-release-of-the-smarttools-for-sharepoint-project.aspx
Continue Reading →How to Truncate and Shrink the WSS_Content_log File
UPDATE: The following post applies to SQL Server 2005. You might run into a scenario on your SharePoint development box where the WSS_Content_log file grows to be quite large. If you’re limited on hard drive space and need to know how to truncate and shrink this log file, follow the directions below. For my particular […]
Continue Reading →How to Find the Server Control ID of a RadGrid
Let’s say you have 2 RadGrids defined in your aspx page. Both grids happen to share the same ItemDataBound event, but you’d like to apply a small tweak depending on what grid is calling the ItemDataBound method. In order to implement your tweak, you’ll need a way to find the ID of the grid that […]
Continue Reading →Adding a Header Row to Telerik RadGrid Programmatically
So here’s the idea. I’ve got a RadGrid on my page that is populated programmatically. I build a DataTable from various different sources and once I’m satisifed with how my DataTable looks, I set the grid’s DataSource property and bind. That’s all good, except now I want to insert a header row in the middle […]
Continue Reading →How to Add a Rich Text Editor to your Custom Application Pages
This article will talk specifically about how to add a Rich Text Editor to your custom application pages. When initially doing some research on this topic, I found a lot of information, but not anything useful that I could actually implement. Here are my steps for adding a control of this type to your pages: […]
Continue Reading →Working with the SPFieldLookupValue Class in SharePoint
If you’ve ever worked with SharePoint columns that are of type Lookup and you’re reading this data in via the object model, you’re probably already aware that the value gets returned as an ugly string in the form of: FIELDLOOKUPID;#FIELDVALUE (23;#Vancouver) What you want to avoid is using string manipulations to get at the ID […]
Continue Reading →Vancouver SharePoint User Group
If anyone living in the Vancouver, BC area, you might want to check out the Vancouver SharePoint User Group. Their next event is on January 13, 2009.
Continue Reading →