Welcome to MSDN Blogs Sign in | Join | Help

October 2008 - Posts

Pull the information about all the subsites under a root site collection

Here I am giving a sample code which will iterate all the subsites of a root site collection and display some information. 1: using System; 2: using System.Collections.Generic; 3: using System.Text; 4: using Microsoft.SharePoint; 5:   6: namespace
Posted by sowmyancs | 3 Comments

Best Practices: SharePoint Object Model for Performance Tuning

I am writing this post because of being inspired by couple of performance related cases that I had worked with my customers also one of triages that I had attended and it was taken by our Escalation Engineer Nishand . He did a very good job by finding
Posted by sowmyancs | 23 Comments

Feature Activation Dependency with Hidden Features !

A Feature activation dependency expresses a requirement in the relationship between two Features. You can express activation dependencies either for Features of the same scope or for Features across different scopes. Please check this link for getting
Posted by sowmyancs | 3 Comments

Programmatically rename a file inside a SharePoint document library

We can’t rename a file using file property SPFile.Name, it will say "Property or indexer 'Microsoft.SharePoint.SPFile.Name' cannot be assigned to -- it is read only.", then how we can rename a file ? Yes, the “name” and “display name” are read-only fields,
Posted by sowmyancs | 2 Comments

Programmatically retrieve the items in a list based on the current user

We can accomplish this requirement by using SPQuery. This sample code I have developed for taking all the items with modified by (column name is "Editor") user BLR3R7-19C\\test1. If you are using this code in a SharePoint web context then oWeb.CurerntUser
Posted by sowmyancs | 6 Comments

How we can work with output cache programmatically ?

Once I got an interesting question from one of our discussion lists about how we can enable output cache programmatically ? and how we can create a cache policy through code. After my research on it I was able to accomplish this one by using the following
Posted by sowmyancs | 1 Comments
 
Page view tracker