Using C# enum in a switch statement can often result in cleaner code, also it helps reduce the chances of any typo's creeping into your code. In this post, I will show one way to achieve this.

Read More
Man pointing a C#

Have you ever came across the following error 'The request was aborted: Could not create SSL/TLS secure channel' when trying to connect to a remote website.

Read More
C# image

This code example shows how to Convert Celsius to Fahrenheit and Convert Fahrenheit to Celsius

Read More
MVC

Return the response from an asynchronous call using jQuery ajax, this blog shows how to return the results from an async call

Read More
MVC image

Have you ever had the need to use Google Authentication, but for whatever reason, you could not use entity framework. This blog shows how to do just that but use ADO.Net with stored procedures.

Read More
MVC Text

In the 1st blog in this series, I showed you the controllers and models that I had created for this project. This post carries on from that post and I show you the code for passing data and retrieving data from the database using ADO.Net.

Read More
MVC

In this short blog, I will show you a problem with Html.AntiForgeryToken() adding duplicate X-Frame-Options SameOrigin headers and one way of fixing the problem.

Read More
Man pointing a C#

In this blog, I will show you how to download the Zip files that EAN use for the properties that they display.

Read More
MVC Image

In the last two blogs in this series, I showed have you have to use two-factor authentication with Google. This bog will display the results.

Read More
Man pointing at C#

In this blog, I will show you how to return multiple values using tuples in C#.

Read More