HTML Checkbox Switches

HTML checkbox switches I’ve been using Switchery in various sites to make nice looking checkboxes, however whilst browsing the projects GitHub issues I spotted one post that said it was possible to replicate it’s functionality using pure CSS (though possibly at the cost of browser compatibility). This seems to work Read more…

Invisible reCAPTCHA

Invisible reCAPTCHA I’ve previously used the Google one click reCAPTCHA in sites but as the new invisible version is out I figured I’d have a go at getting it to work. Previously I had the one click reCAPTCHA working as below where the result populated an invisible required field validated Read more…

X-FRAME-OPTIONS Response Header

X-FRAME-OPTIONS Response Header I hadn’t previously realised this but MVC adds an X-FRAME-OPTIONS: SAMEORIGIN header to site page responses as part of a security measure to prevent sites running in iframes. These can be removed in ASP.NET 5 applications by modifying the relevant option in Startup.cs public void ConfigureServices(IServiceCollection services) Read more…

Live Chart.js Charts

I wanted to use Chart.js charts in my ASP.NET Core projects and as there didn’t seem to be anything existing that fit the bill decided to do it myself. Chart Creation There seems to be a few projects around for generating the relevant javascript for Chart.js but all the ones Read more…