Portfolio Snapshots

Hits From The Blog

Set file upload size limit

When trying to set the maximum filesize for uploads, sometimes is setting the filesize on a SharePoint 2010 site’s general settings of the webapplication not enough.

Multi server applications

To deny acces for multiple servers to perform the same actions, it’s possible to set a lock on the class, so only ONE instance of the timerjob will be executed.

Reading XML with Linq

When we want to get values from an XML-document, we can use the XDocument object. With the use of Linq-to-XML we can create advanced queries to get the necessary data. Here is an example of how this can be done.