Monthly Archives: July 2007

Webpart security

If the webpart need to access Sharepoint server info, there are 3 options when deploying the webpart in security context: Deploy to GAC, and no other settings need to be changed. Downside: need to recycle application pool when upgrade; webpart … Continue reading

Posted in Security, Webpart | Tagged , | Leave a comment

Add, Delete and Recycle Bin

SPWeb.Folders.Add() will not throw exception if the folder already exists. If that’s the case it will return that folder object. However the parent folder must already exists, versus in C#, Directory.CreateDirectory() will automatically create the whole tree. I had to … Continue reading

Posted in Events | 2 Comments

_files folder (part 3) Special delete rules for _files folder

If there are sub-folders under this _files folder, you can’t simply just delete the _files folder. If you do so, you will get exception when you try to create same sub folder in same _files folder. For a regular folder, … Continue reading

Posted in Document library | Tagged | Leave a comment

_files folder (part 2) – “You cannot copy or move a thicket file” – how to rename

Unlike in Windows explorer, if you delete/rename the htm file (even purge from Recycle Bin) in Sharaepoint, the supporting folder will NOT be renamed or deleted. If you try to rename the folder by calling MoveTo( string newFolderName ) method, … Continue reading

Posted in Document library | Tagged | 5 Comments

_files folder (part 1) – what’s special about it

If you create a folder in Sharepoint named like myfilename_files, this folder will be hidden on the UI. Many MS generated HTM files have this supporting folder. (Note: you will not be able to create this kind of folder through … Continue reading

Posted in Document library | Tagged | Leave a comment

Publish a Major Version – events

Publish a Major Version: this menu is only available when file is in a checked-in status. If it’s already checked out, it can only be checked in. When action is taken, ItemCheckedIn event is not called. Instead, ItemUpdated is called. … Continue reading

Posted in Events | Tagged , , | 5 Comments

Events in Microsoft Sharepoint 2007

MS provides very limited documentation on the sequence of the events, or what event(s) a particular action will incur. Here is my findings: I didn’t handle xxxING events. Here are all xxxED events: Folder operations: Add a folder: ItemAdded. No … Continue reading

Posted in Events | Tagged | Leave a comment