C#

Create Radar chart from Database

Posted on

Last I was asked to create a proof of concept for creating a radar chart based on some scores a user got on a test. The test is devided in categories and for each category the user gets a score. First I created the database and it looked like this: With this database I tried […]

C#

AjaxControlToolkit not working in UserControls.

Posted on

Today I was trying to implement an AutoCompleteExtender. It took me a lot of time until I figured out what the problem was. Actually the AutoCompleteExtender cannot work in a UserControl (.ascx). The only way to get the AutoCompleteExtender working is to use a service for getting the data or bring the functionality back to […]

C#

Regular expression for date

Posted on

I was looking for the perfect regex to validate a date. The examples I found on the internet where all not good enough. If you try validating 29/02/2010 it should give a fault but it didn’t so I created my own regex. The best regular expression I can think of right now is this: ^(((0?[1-9]|[12]\d|3[01])[\/](0?[13578]|1[02])[\/]((1[6-9]|[2-9]\d)?\d{2}|\d))|((0?[1-9]|[12]\d|30)[\/](0?[13456789]|1[012]) […]