Archive for 'C#' Category
Get FormDigest from C# using REST in SharePoint 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 [...]
Download wsp solution file from SharePoint Farm
Here is a simple code to download the actual solution file from SharePoint Farm.
How to generate a valid SharePoint FileName
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.
How to add custom CSS in your WebPart
Here is the quickest way to add your own CSS file for your web part.
Got MCTS Status Today! – Exam 70-542 Done!
Here is the small guide to prepare for MCTS exam 70-542 Microsoft Office SharePoint Server 2007 ― Application Development
Programmatically upload a file to Document Library
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.
