Nishand's Blog

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
  • Nishand's Blog

    Updating 'ModerationStatus' field

    • 1 Comments
    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 ...
  • Nishand's Blog

    SPWeb.GetObject() throws an exception when site context changes.

    • 0 Comments
    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...
  • Nishand's Blog

    How to delete SPRecycleBin items?

    • 1 Comments
    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...
  • Nishand's Blog

    What does the SPWeb.ParserEnabled property do?

    • 1 Comments
    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...
Page 1 of 1 (4 items)