by Eugene Rosenfeld | Oct 20, 2009 | C#, MOSS, SharePoint, SharePoint 2010, SharePoint Designer 2007, Visual Studio, WSS
Download the Visual Studio 2010 beta and check out the SharePoint 2010 walkthroughs and how to’s here: http://msdn.microsoft.com/en-us/vstudio/dd441784.aspx Walkthroughs Add Feature Event Receivers Create a Custom Field, Content Type, List Definition, and List...
by Eugene Rosenfeld | Oct 13, 2009 | C#, MOSS, SharePoint, SharePoint Portal Server 2003, WSS
When creating web parts, event receivers, timer jobs and other SharePoint code, I often find that I need to temporarily grant the code more permissions than the current user has. I’ve found that many developers either don’t know what options they have for user...
by Eugene Rosenfeld | Sep 10, 2009 | C#, MOSS, SharePoint, WSS
Unlike adding folders to document libraries, adding folders to lists requires a bit more work in order for the folder to appear in the list view. For example, the following code will add a folder to the list, but the folder will be hidden and not show up in the list...
by Eugene Rosenfeld | Sep 8, 2009 | C#, MOSS, SharePoint, WSS
I was writing a SharePoint feature that had to register a custom HTTP module. Naturally I started looking at the SPWebConfigModification class and soon had some code that looked like it would add my HTTP module to the httpModules element in the SharePoint web.config...
by Eugene Rosenfeld | Aug 10, 2009 | .Net, C#, Impersonation
I do a lot of server programming. I frequently need to be able to run some code as a different user than the currently logged-in user. Unfortunately, the .Net Framework does not make this particularly easy. Sure, there is the WindowsIdentity class and its Impersonate...