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: Code snippet to download the files along with versions from SPS 2003 document library.

    1: private void Download() 2: { 3: string siteUrl = txtSite.Text.ToString(); 4: string source = txtDocLib.Text.ToString(); 5: string downloadPath= txtDownload.Text.ToString(); 6: byte [] vContent = null; 7: int count = 1; 8:   9: using (SPSite site = new SPSite...
  • 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: Ways to pass security credentials to web service call

    [1] 1: WS.Credentials = new System.Net.NetworkCredential(userName, password, domain); If you want to pass explicit credentials and filter the record after that.   [2] http://support.microsoft.com/kb/813834 1: myProxy.Credentials = System.Net.CredentialCache...
  • Blog Post: How To: Steps to create web services in MOSS 2007

    I followed the article http://msdn2.microsoft.com/en-us/library/ms464040.aspx but still I had to do couple of more settings which I have covered here. A. Creating an ASP.NET Web Service in Visual Studio Create a web service project. Add class library project to the Solution(ref. System.Web.Services)...
Page 1 of 1 (5 items)