Posted by Adam Buenz
In one my past posts, I talked about that CryptoCollaboration using the EventArgs base class because it keeps things nice and generalized, allowing for expanasion for the handling of future event integration. A person emailed me and asked for a practical example of when would use such a thing in a SharePoint WebPart. Eh, ok.
I [...]
Posted by Adam Buenz
Ever notice how its always the smallest code tasks that take the longest to solve? Thats how it is with me!
I am working on an emailing program and I wanted to be able to build an ErrorCollection class, inheriting from the StringCollection base class since it would allow the representation of a set of strings. [...]
Posted by Adam Buenz
I was looking at some code that I wrote in the past (I don’t even remember when!), interested in what classes might have been deprecated. One of the classes that I figured would be deprecated was the PortalContext class that provides run-time support for a portal site, however I was wrong, and it is still [...]
Posted by Adam Buenz
On occasion, you may encounter the requirement when doing SharePoint development to return a string that represents the path to your SharePoint layouts directory supplemented with your suffixed locale ID (i.e. English being 1033). Generally, this becomes important when developing applications that may be used for a geographically disperse deployments. I would encourage you [...]
Posted by Adam Buenz
I got in an argument today over the phone with a co-worker I used to work with that there was no AuthenticationButton Class. Actually, there is a sealed AuthenticationButton class that inherits from System.Web.UI.Control class, the System.Web.UI.INamingContainer interface, and the Microsoft.SharePoint.WebControls. IDesignTimeHtmlProvider.
To be honest, I only used it in SharePoint 2003, but it doesn’t appear [...]
Posted by Adam Buenz
It is a best practice to not blindly use GUID’s, you should always test whether they are valid or not. This proves helpful in several SharePoint helper methods when you are doing custom SharePoint development, and is something that should be implemented in your corporate standard shared libraries.
Considering that testing for the GUID is a [...]
Posted by Adam Buenz
I went through a class architecture / code review of CryptoCollaboration this afternoon. Taking some feedback from Andy (his site is located here), I have been able to build and deploy a SharePoint list definition with the relevant event handlers that upon upload, will encrypt a document. There is also the option within a pre-exisiting [...]