Welcome to MSDN Blogs Sign in | Join | Help

May 2008 - Posts

How we can create documents inside a document library based upon the content type’s document template?

Before starting the coding, let us have a look at the storage location of documents whenever we add those in to any document libraries, also the location of content type’s document template. Whenever you open your SharePoint document library using the
Posted by sowmyancs | 1 Comments

Issue with the WebPartManager class while adding webparts dynamically to a specific webpart zone

Once I got a case in which my customer wanted to create a webpart which will allow them to add some custom webparts to the specific zone in the same page by checking the corresponding check boxes in that webpart. (almost similar to the functionality in
Posted by sowmyancs | 1 Comments

Issue with customizing default.aspx page through Feature Stapler

What is feature stapling and how we will implement it in WSS 3.0? You can use Feature stapling to effectively replace your use of the ExecuteURL property in a site definition. Consider the scenario that you want to run some custom code whenever a site
Posted by sowmyancs | 6 Comments

Attachment(s): All Files.zip

How we can retrieve the metadata information of a current approved version of a list item.

Consider you want to get the metadata information of an item’s current approved version. For getting more details please take a look at the below image, it is a version history of list item. (In order to get this you need to enable the versioning and
Posted by sowmyancs | 0 Comments

Update email addresses of all users in all sites in a SharePoint Farm in a single shot (code sample for both V2 & V3)

Recently I got a case from one of customer and their requirement was, since their domain for the email accounts has been modified to an another name, they wanted to update email addresses of all users in all the sites in their SharePoint farm. It will
Posted by sowmyancs | 0 Comments

Important point that we need to remember while creating a webpart to render a PeopleEditor control with default values

Consider you have requirement to create a webpart which will render a PeopleEditor control with some default values. We have a facility to give the default values to the PeopleEditor control using the CommaSeparatedAccounts property of that control. While
Posted by sowmyancs | 0 Comments

Create a tool or an interface to delete the Audit log from Content DB of an auditing enabled SharePoint site

Before starting this post, I would like to share an information about this facility in SharePoint. There was no way of deleting the audit log entries in SharePoint till the release of infrastructure update for SharePoint. Once you install this update,
Posted by sowmyancs | 0 Comments
 
Page view tracker