Monthly Archives: September 2012

MVVMlight button in DataTemplate

For a major project I’m currently working on I needed to add a button to the items in a ListPicker. This projects uses MVVMLight as MVVM framework, so I have to use the RelayCommand for the handling of the button clicks. My initial thought was to do it just like any other button: View (XAML): […]

Comments Off on MVVMlight button in DataTemplate  

How to use the result of a stored procedure in a MSSQL query

This problem is one I faced several years ago, but today I remembered it and thought someone might need the solution. The problem was simple, I needed to use the result of a stored procedure in a query. The client had used a backend using MS SQL as data store, but couldn’t adjust the database […]

Comments Off on How to use the result of a stored procedure in a MSSQL query  

C# base64 encoding and decoding

Today a simple thing, which I always have to lookup because I rarely use it. While communicating with some systems you have to encode the data using base 64 encoding. Base64 encoding is an encoding where every character is encoded using only a..z A..Z 0..9 + and /. This solves problems with special control characters.  […]

Comments Off on C# base64 encoding and decoding