Posted by Adam Buenz
Well, maybe it is just me, but you should generally use a method in order to get a reference to your SharePoint lists. For example, you are generally getting a reference as such:
Select For Unformatted Code
C#:
using(SPSite mySite = new SPSite("http://server/"))
{
using(SPWeb myWeb = mySite.OpenWeb())
{
SPList myList = myWeb.Lists["MyList"];
}
}
But wouldn't it be better to use a method?
Select [...]
Posted by Adam Buenz
Someone asked me this morning when doing a code review of my code how I got a field value. They were not looking very closely. Here is how I do it, although there are 50,000 other ways of doing it.
This is my getFieldValue helper method, that will be called at other instance points throughout the [...]
Posted by Adam Buenz
I ran into something simple today when I was writing a new event receiver for my current gig at Shaw AFB. The event handler itself was very simplistic. All it does is reference a piece of metadata within the SPListItem being uploaded into a document library, and based on that piece of metadata, route the [...]
Posted by Adam Buenz
In previous posts, I ranted about the benefits of using design by contract (DbC) programming, and its benefits. In the post we discussed some very interesting things about DbC, and explored some of the benefits that we get by implementing this paradigm with something as simple as the properties that are being exposed by a [...]
Posted by Adam Buenz
Handling faults in WorkFlows is an important concept to consider because sometimes a routine that your workflow is inherently calling will just fart out. It just happens, sucks, but happens. It happens with generic .NET development, it happens when building custom workflows. An error will occur with your workflow, bubble up, and it must be [...]
Posted by Adam Buenz
Lately, I have been immersed in SharePoint WorkFlows, which in itself is not really a bad thing, however I am finding my own quirks as I run through it. And by some I mean a lot. For example, I was looking for an elegant way to run my work flow code with elevated privileges where [...]
Posted by Adam Buenz
sharepointseo.com will be opening up soon to the public, and accepting members for contributions!
I have finally secured some hosting for the site, and will be posting some SEO components that enhance public facing SharePoint extranets related either directly to presentation ranking display, other tools related to directly managing Google assets through WebParts or custom SharePoint [...]