Archive for 'C#' Category

Get FormDigest from C# using REST in SharePoint 2013

By Namwar Rizvi - Last updated: Sunday, March 17, 2013

If you want to communicate with SharePoint 2013 through REST, you need to send FormDigest value with every request. In JavaScript, it is very easy as it will always be available on SharePoint Page where your JavaScript code is executing. It is quite tricky when you need to submit REST requests from C# code as […]

Share

Download wsp solution file from SharePoint Farm

By Namwar Rizvi - Last updated: Sunday, October 10, 2010

Here is a simple code to download the actual solution file from SharePoint Farm.

Share

How to generate a valid SharePoint FileName

By Namwar Rizvi - Last updated: Thursday, June 17, 2010

How to generate a valid SharePoint FileName. I have created a utility function to convert a given string to a valid SharePoint filename. This function is valid for SharePoint 2003, 2007 and 2010.

Share

How to add custom CSS in your WebPart

By Namwar Rizvi - Last updated: Sunday, June 14, 2009

Here is the quickest way to add your own CSS file for your web part.

Share

Got MCTS Status Today! – Exam 70-542 Done!

By Namwar Rizvi - Last updated: Saturday, February 7, 2009

Here is the small guide to prepare for MCTS exam 70-542 Microsoft Office SharePoint Server 2007 ― Application Development

Share

Programmatically upload a file to Document Library

By Namwar Rizvi - Last updated: Saturday, January 10, 2009

Following is a utility function which you can use to upload a file programmatically in SharePoint document library. It has two parameters. First is the source file path and second is the target document library path.

Share