Blog posts

72 results found

72 results in .NET, Community, SQL

dotnet Simple .NET keep alive handler to prevent timeout

This post shows you how to create a simple keep alive for a .NET website so people can stay logged in whilst the page is open, instead of it timing out after 20 minutes.

dotnet Simple Reusable .NET Caching Example Code in C#

Caching is important because it can speed up your website or application. Here is a simple example for you to take away and re-use:

dotnet How to fix Font Awesome WebFont woff2 not found

If you are getting the error fontawesome-webfont.woff2?v=4.6.3 not found but you definitely know you have the file, here is how to fix it in IIS.

dotnet Switch between ajax and post back in the same form

I realised that I needed to change the mode of the form depending on which button was pressed. So I came up with this bit of javascript/jquery.

dotnet How to create a random password generator in C#

In this post I will show you how to create your own password generator in C#. It can be used to generate random strong passwords and it complies with recommendations from OWASP

dotnet LINQ method to see if two lists contain a match

This post gives you the code to check if two lists contain a match. It is written in C# and uses LINQ.

dotnet 7 simple tips to improve your .NET website

Here are 7 simple tips to help you improve your .NET website

dotnet How to export data to Excel as a CSV file in C#

This post shows you how you can create the functionality to export data as a CSV file to download and open in Excel.

dotnet How to set up and configure error logging in .NET with log4net

This is a simple and straight forward tutorial on how to set up and configure error logging with log4net in your .NET application.

dotnet Searching for prime numbers

Searching for prime numbers can be fun. This post shows you how I did it.

dotnet How to create a custom Slack integration using webhooks

This post gives you the code and simple instructions on how to create your own custom integration for slack, written in .NET C#

dev·dotnet Why you should not write comments in your code.

Over the years, I have heard both sides of the argument about whether you should or shouldn't write comments in your code. In this post, I make my argument as to why I think you should avoid writing comments in your code.