Enabling HTTPS Rewrites
When setting up a website, even if it’s just a generic blog like this one, it’s good to encrypt traffic to and from it using SSL. Obtaining certificates If you’re hosting a site on it’s own custom domain name rather Read more
When setting up a website, even if it’s just a generic blog like this one, it’s good to encrypt traffic to and from it using SSL. Obtaining certificates If you’re hosting a site on it’s own custom domain name rather Read more
There’s a variety of different ways to access configuration settings from an appsettings.json file in a project, these are all well documented here so this post is mostly intended to serve as a reminder for the methods I most frequently Read more
Whenever I create a new project in Visual Studio 2015 one of the first things I do is go and upgrade all of the included NuGet packages. When creating an ASP.NET Core Web Application one of the included NuGet packages Read more
Although there’s a date picker present in HTML5 this won’t always work in older browsers and doesn’t look that great anyway so it’s generally better to do this via jQuery. First off add the following script tags to the head Read more
I generally end up forgetting how to return results from a SQL stored procedure within .NET so I figured I’d put it here for reference.
What I need to do here is to create an API that can authenticate and ingest an XML POST request, saving the provided data into a SQL database and returning a relevant HTML status code. Unfortunately this wasn’t quite as Read more
This is essentially just based on Google prettify which can be found here. Stick the following code in the head of the page to load the javascript. And then put the code you’d like to prettify in the following tags. Read more