Miscellaneous Debris
Avner Kashtan's Frustrations and Exultations
-
Double Hop and ASP.NET - a workaround.
<Background>Many people have stumbled across the IIS Double-Hop issue when trying to access Active Directory information on an ASP.NET page.In short - when we access an ASP.NET page, IIS … more
-
Binding to Sharepoint List Items (Part 2 of 2)
In the first part of the post we went over binding an SPListItemCollection to a DataGrid for quick'n'dirty binding of Sharepoint list data. The problem with this approach is that extensibility is a … more
-
Binding to Sharepoint List Items (Part 1 of 2)
Databinding is cool. It lets us connect our front-end GUI elements (say, a DataGrid) to our back-end data elements (a DataSet, for instance) without the drudgery of synchronizing the two all the time. … more
-
Question: Singleton Inheritance
I have this class, that implements the singleton pattern, and a subclass. public class Base{ public static Base Instance; static Base() { & … more
-
How to get the current SPS Area in a Web-Part
When we write a WebPart or WebControl that resides in a SPS Area, we will want to know at runtime which area we reside in.This, surprisingly enough, is not trivial. It's not even easy. In fact, it's … more
-
VB Build Events
Having found myself developing in VB.NET alongside C# recently, I was rather annoyed at the lack of pre- and post-build-events for VB projects in VS.NET2003. A quick check of the DTE automation model … more
-
PortalRight - all wrong.
A followup to this post: The PortalRight enumeration defined in Microsoft.Sharepoint.Portal.Security is, for some reason, derived from UInt32 rather than Int32. You can see this in the Object Browser … more
-
SPS Area Templates
And, to close of the day's rants - an instructive post. Today: How to create a template of a Sharepoint Area that can be moved or taken to different servers. Unfortunately, SPS Areas can't be bundled … more
-
LoadControl and HTML Comments
Developin webparts with many UI elements can be a hassle - which is why I'm fond of the UserControl shortcut - I build my web UI as a WebUserControl, then simply have my webpart call Page.LoadControl … more
-
To CLS or not to CLS.
For some reason, Sharepoint's object model doesnt adher to Microsoft's recommended practices - namely, trying to keep your external interfaces CLS-compliant. It seems the object model itself exposes … more