Hans Rasmussen

info@hansrasmussen.com, +46 (0)723 207008

Consuming a JSON service with C#

If you like to consume a JSON web service in C# this example might be handy. You need to know the url (web address) of the web service You need to understand what the web service will return You need to know what kind of security the web service accepts (My example uses Basic Authentication) [...]

Validation with jQuery validator plugin

Reference http://docs.jquery.com/Plugins/Validation/   Setup A reference to jQuery validator plugin <script type=”text/javascript” src=”http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.js”></script>   A reference to jQuery <script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js”></script>   Configuration – simple on class and attribute level It is possible to declare your validation rules in various ways. It is suggested primarily to try it on class and attribute level and secondary [...]