Microsoft Premier Field Engineer - SharePoint

All posts are provided "AS IS" with no warranties, and confers no rights.

Browse by Tags

Tagged Content List
  • Blog Post: SharePoint 2010 Performance Dashboard - Farm Content Size Reporting(Post 2/2)

      Here I have mentioned the code which can be useful to get the Content DB, Site Collection Usage details.   SPFarm farm = SPFarm.Local; SPWebService service = farm.Services.GetValue<SPWebService>( "" );   string webappName = "" ; ...
  • Blog Post: SharePoint 2010 Performance Dashboard - Farm Content Size Reporting(Post 1/2)

      In this post we will look into how I did “Farm Content Size Reporting” part of the project, We have two types of reporting in this functionality. Content Databases per Web Applications Report Site Collections per Content Databases Report This can be useful for a very large size farm and where...
  • Blog Post: Developing Applications for SharePoint 2010 - The release of patterns & practices

    Overview Developing Applications for SharePoint 2010 contains guidance documentation, detailed examples, and a reusable class library. These resources are designed to help solution developers and architects make the right decisions and follow proven practices when designing and developing applications...
  • Blog Post: Automatically restart the failed workflow instances

    Recently I came across a situation in which customer had email enabled a document library and he had setup a custom workflow to start whenever any new item is added in the library. This setup was working as expected but when end-users send some higher number of emails at the same time (lets say 20-30...
  • Blog Post: Webpart code to dynamically load a page viewer webpart to display a requested page

    1: using System; 2: using System.Runtime.InteropServices; 3: using System.Web.UI; 4: using System.Web.UI.WebControls; 5: using System.Web.UI.WebControls.WebParts; 6: using System.Xml.Serialization; 7:   8: using Microsoft.SharePoint; 9: using Microsoft.SharePoint...
  • Blog Post: Code snippet to copy documents from one document library to another

    1: using (SPSite site = new SPSite( "http://ms10:200/sites/200" )) 2: { 3: using (SPWeb web = site.OpenWeb()) 4: { 5: SPList lib1 = (SPDocumentLibrary)web.Lists[ "Documents" ]; 6: SPList lib2 = (SPDocumentLibrary)web.Lists[ "Site Collection Documents"...
  • Blog Post: Code snippet to create a Tasks list and associate it with a Parallel Approval workflow in a Pages library

    The requirement to write this code was, After export/import, workflow modification for approvers was failing. Approvers were not able to perform the Approval workflow operations and then we tested that if we create a new Tasks list and modify the existing Approval workflow association then everything...
  • Blog Post: Event handler code to add incoming emails with subject “Discussion [ID]” as replies

    Here the users will send emails with subject “DiscussionTitle [Discussion ID]” format. If there is a discussion thread present with specified “[Discussion ID]” then it will add the incoming email as a reply in that thread. If ID is not supplied and if there is no discussion thread present with “DiscussionTitle...
  • Blog Post: Code Snippet to remove duplicate workflow associations from a content type

    1: using (SPSite site = new SPSite( "http://ms9:105" )) 2: { 3: using (SPWeb web = site.OpenWeb()) 4: { 5: SPList list = web.Lists[ "Shared Documents" ]; 6: 7: foreach (SPContentType con in list.ContentTypes) 8: { 9: if (con.Name == "Document"...
  • Blog Post: Code snippet to add / modify columns in a list

    It iterates through a whole site collection and wherever the list with name “test” it finds, It will do the changes. 1: using System; 2: using System.Collections.Generic; 3: using System.Text; 4: using Microsoft.SharePoint; 5:   6: namespace ConsoleApplication1 7: ...
  • Blog Post: Code sample to aggregate the text from "append changes" column to Multiline text field.

    This is a code sample to copy all of the text from the “col1” column to “col2” column. To note again, “col1” is an "append changes" column so the previous edits of the comments field are stored in previous versions of the list item. 1: using System; 2: using System.Collections.Generic;...
  • Blog Post: Code to subscribe the User for alert notifications from a list

    1: SPWeb web = SPContext.Current.Web; 2:   3: SPList list = web.Lists[ "Pages" ]; 4:   5: SPUser user = web.CurrentUser; 6:   7: SPAlert alert = user.Alerts.Add(); 8:   9: alert.Title = "My Alert" ; 10:   11...
  • Blog Post: How to: Enable Edit option for non anonymous comments in blogs

    We have implemented an internal blog site using the MOSS 2007 blog template. One of the requirements was to support anonymous comments. Since this is not an out-of-the-box feature, we searched and found a solution on the Microsoft SharePoint Team Blog site, http://blogs.msdn.com/sharepoint/archive/2007...
  • Blog Post: Resolution: Problems with Ajax development/ Page does post back

    If the you have applied bluband.master then we need to do changes in bluband.master per the solution step [2] [1] Webpart change Add following code in your webpart and call it in CreateChildControls //in CreateChildControls method //Fix for the UpdatePanel postback behaviour.            ...
  • Blog Post: How To: Add a permission group in the document library's folders

    This is the snippet which will add a permission group in the document library’s folders. 1: using System; 2: using System.Collections.Generic; 3: using System.Text; 4: using Microsoft.SharePoint; 5: 6: namespace ConsoleApplication1 7: { 8: class Program 9: { ...
  • Blog Post: How To: Create user profile in SSP from FBA site

    -------------------------------------------------------------------------------------- Web Service approach -------------------------------------------------------------------------------------- You can use UserProfileService.asmx webservice to achieve the solution. There are couple of methods in this...
Page 1 of 1 (16 items)