Month: July 2016
-
How to read optional attributes in XML with default values
When we are reading data from XML data sources, it is very common that when a value is not given for an attribute or an element, we have to use a default value instead. Having to check for the existence of the node each and every time we are reading a value can be annoying […]
-
Disabling Security warning for Attach to process in Visual Studio 2010, 2013 and 2015
You probably have already suffered from the pain of having to click one more time when attaching visual studio’s debugger to a process. As developers we all have the obsession to be more productive and everything that comes in the way is a bummer. I should have shared this little secret before, but … I […]
-
Connecting WebParts programmatically in SharePoint
Let’s start by an example. Example In this blog post, I’m going to assume we have a webpart that displays a contact list and another one that displays a map with the possibility to pinpoint an address. To keep things simple I assume the address is merely a string. To connect these webparts, we typically do the […]