Category Archives: Web-Api

Custom date validation with ASP.NET MVC / Web-Api server and client-side dutch date example

I live in the Netherlands and we have a different way of writing the date then like in the US. For example: 31 January 2012 is like this: 31-01-2012. To accomplish this to be validated with MVC and Web-Api add … Continue reading

Posted in ASP.NET, JavaScript, MVC, Web-Api | Leave a comment

HTML checkbox as boolean values with jQuery (using ASP.NET MVC Web-Api)

I like to have my HTML form data to be send in JSON. When reading values from checkboxes with the default jQuery serializeArray you get the value “on” for checkboxes that are checked. In my viewmodel I have boolean properties … Continue reading

Posted in ASP.NET, HTML, JavaScript, jQuery, JSON, MVC, Web-Api | Tagged , , , , , , , , | 6 Comments