Blog posts

80 results found

80 results in .NET, Videos, Web

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.

dotnet How to use bundling to minify css and JavaScript in MVC and Umbraco

This post shows you how to set up and use bundling and minification in your MVC website. There are specific instructions on how set it up for Umbraco websites too.

dotnet How do you use the try catch finally blocks?

I must admit, in the past when I just want some code to run, but it's not critical if it fails, I have written a try catch block which looks like this.

dotnet Please tell me you don't write if true equals true

It drives me crazy when I see code where someone is checking a boolean to see if it is true or not and they write it like this.

dotnet MVC Custom Model Property Validation Attributes

This post shows you how to create your own custom validation attributes in MVC. You can then decorate your model properties with them on your forms.