Welcome to my personal blog, All the information in this bogs is my ideas,findings and thoughts on .Net, Asp.Net and SharePoint.
ALL POSTING ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND
June 2008 - Posts
-
You might have experienced a road block when trying to the update the ‘ ModerationStatus’ field with other fields. Any attempt to do so will result in an exception “ You cannot change moderation status and set other item properties at that same time ”. Read More...
|
-
Here is the scenario, you may want to get an object(SPListItem) without iterating through the list item collection, if you know the URL of the file the GetObject() returns the item. Section#1 1: 1. SPSite site = new SPSite( "http://nishand:100/sites/RootSite/" Read More...
|
-
1: SPSite spSite = new SPSite( "http://nishand:100/sites/InternetSite/" ); 2: SPRecycleBinItemCollection collection = spSite.RecycleBin; 3: 4: for ( int x = 0; x < collection.Count ; x++) 5: { 6: collection[x].Delete(); x = x-1; 7: } 8: The above code Read More...
|
-
When we set SPWeb.ParserEnabled to false, it disables the document parser (there will not be any property demotion and promotion), it means that the file properties and the WSS properties will not be in sync. So when you search for a custom file property Read More...
|