Posts tagged "C#"

Published: April 19 2023

.NET 7.0 + MySQL - Connect to MySQL Database with Dapper in C# and ASP.NET Core

How to connect to a MySQL database with C# in ASP.NET Core using Dapper and ADO.NET
Published: April 17 2023

MySQL + Dapper - Create database if it doesn't exist on startup with C# and ASP.NET Core

How to auto create a database and tables in MySQL with C#, ASP.NET Core and the Dapper ORM
Published: April 14 2023

.NET 7.0 + Dapper + MySQL - CRUD API Tutorial in ASP.NET Core

How to build a .NET 7.0 CRUD API with Dapper and a MySQL database.
Published: April 05 2023

Postgres CRUD Operations in C# with Dapper Repository

How to perform CRUD operations on a PostgreSQL database in C# with a Dapper Repository
Published: April 04 2023

.NET 7.0 + C# - JWT Authentication Tutorial without ASP.NET Core Identity

Custom JWT authentication without Identity in ASP.NET Core and C#. Includes example client apps built with Angular, React, Vue & Blazor.
Published: March 28 2023

.NET 7.0 + Postgres - Connect to PostgreSQL Database with Dapper in C# and ASP.NET Core

How to connect to a PostgreSQL database with C# in ASP.NET Core using Dapper and ADO.NET
Published: March 27 2023

Postgres + Dapper - Create database if it doesn't exist on startup with C# and ASP.NET Core

How to auto create a database and tables in PostgreSQL with C#, ASP.NET Core and the Dapper ORM
Published: March 23 2023
Last updated: April 13 2023

.NET 7.0 + Dapper + PostgreSQL - CRUD API Tutorial in ASP.NET Core

How to build a .NET 7.0 CRUD API with Dapper and a PostgreSQL database.
Published: February 15 2023

SqlClient.SqlException - The certificate chain was issued by an authority that is not trusted

How to fix this SSL connection error when connecting to SQL Server from ASP.NET Core
Published: February 15 2023

.NET 7.0 + Dapper - Connect to MS SQL Server Database in ASP.NET Core

How to connect to a SQL Server database in ASP.NET Core with Dapper and ADO.NET
Published: February 14 2023
Last updated: April 13 2023

.NET 7.0 + Dapper + MS SQL Server - CRUD API Tutorial in ASP.NET Core

How to build a .NET 7.0 CRUD API with Dapper and a SQL Server database.
Published: February 14 2023

Dapper + SQL Server - Create database if it doesn't exist on startup in ASP.NET Core

How to auto create a database and tables in SQL Server with ASP.NET Core and Dapper
Published: February 13 2023

.NET 7.0 + Dapper - Connect to SQLite Database in ASP.NET Core

How to connect to a SQLite database in ASP.NET Core with Dapper and ADO.NET
Published: February 10 2023
Last updated: April 13 2023

.NET 7.0 + Dapper + SQLite - CRUD API Tutorial in ASP.NET Core

How to build a .NET 7.0 CRUD API with Dapper and a SQLite database.
Published: February 10 2023

C# + .NET 7.0 - Serialize (Convert) Enum to String in API Response

How to convert enum properties to strings in ASP.NET Core API responses.
Published: February 10 2023

.NET 7.0 + Dapper - Create Database Tables on Startup in ASP.NET Core

How to auto create database tables on startup in ASP.NET Core with Dapper
Published: January 30 2023

C# + RestSharp - Add Bearer Token Authorization Header to HTTP Request in .NET

A quick example of how to add a Bearer Token Authorization Header to an HTTP request in .NET using RestSharp
Published: January 30 2023

C# + RestSharp - HTTP PUT Request Examples in .NET

A quick set of examples to show how to send HTTP PUT requests from .NET to an API using RestSharp
Published: January 30 2023

C# + RestSharp - HTTP DELETE Request Examples in .NET

A quick set of examples to show how to send HTTP DELETE requests from .NET to an API using RestSharp
Published: January 27 2023

C# + RestSharp - HTTP GET Request Examples in .NET

A quick set of examples to show how to send HTTP GET requests from .NET to an API using RestSharp
Published: January 27 2023

C# + RestSharp - POST a JSON Object to an API in .NET

A quick example of how to POST a JSON object in an HTTP request to an API using RestSharp
Published: January 26 2023

C# + RestSharp - HTTP POST Request Examples in .NET

A quick set of examples to show how to send HTTP POST requests from .NET to an API using RestSharp
Published: January 20 2023

.NET 7.0 + RestSharp - Deserialize Dynamic JSON Response from HTTP Request

How to deserialize JSON data from an HTTP request dynamically without a custom class for the response.
Published: January 20 2023

.NET 7.0 - Create a Base Controller in .NET

This is a super quick post on how to create base controller in .NET
Published: January 19 2023

.NET 7.0 Auth - Sign & Validate JWT Without Core Identity

This is a quick post to show how easy it is to sign and validate JWT auth tokens in .NET 7.0 without using the built-in Core Identity membership system.
Published: January 19 2023

.NET 7.0 - Create Custom AuthorizeAttribute and AllowAnonymous Attribute

This is a super quick post on how to create custom [Authorize] and [AllowAnonymous] attributes in .NET 7.0.
Published: January 18 2023

.NET 7.0 - Facebook Authentication API Tutorial with Example

Tutorial on how to build a .NET 7.0 API that supports Facebook Authentication.
Published: November 28 2022
Last updated: January 05 2023

.NET 6.0 - Apply Authorize Attribute to All Controllers

How to quickly apply the Authorize Attribute to all controllers by default in .NET 6.0
Published: November 22 2022

.NET 6.0 - Connect to InMemory Database with Entity Framework Core

This post shows how to connect a .NET 6 API to an InMemory database for testing with Entity Framework Core.
Published: September 05 2022

.NET 6.0 - Connect to SQLite Database with Entity Framework Core

This post shows goes through the steps to connect a .NET 6 API to SQLite using Entity Framework Core, and automatically create/update the SQLite database from code using EF Core migrations.
Published: June 23 2022

.NET 6.0 - Connect to PostgreSQL Database with Entity Framework Core

This post shows goes through the steps to connect a .NET 6 API to PostgreSQL using Entity Framework Core, and automatically create/update the PostgreSQL database from code using EF Core migrations.
Published: March 25 2022

.NET 6.0 - Connect to MySQL Database with Entity Framework Core

This post shows goes through the steps to connect a .NET 6 API to MySQL using Entity Framework Core, and automatically create/update the MySQL database from code using EF Core migrations.
Published: March 18 2022

.NET 6.0 - Connect to SQL Server with Entity Framework Core

This post shows goes through the steps to connect a .NET 6 API to SQL Server using Entity Framework Core, and automatically create/update the SQL Server database from code using EF Core migrations.
Published: March 15 2022

.NET 6.0 - CRUD API Example and Tutorial

Tutorial on how to build a .NET 6.0 API that supports CRUD operations.
Published: March 11 2022

.NET 6.0 - Send an Email via SMTP with MailKit

This is a quick example of how to send an email in .NET 6.0 using the MailKit email client library.
Published: February 26 2022

.NET 6.0 - Boilerplate API Tutorial with Email Sign Up, Verification, Authentication & Forgot Password

How to build a boilerplate .NET 6.0 API that supports email sign up, verification, authentication, role based access control, forgot password, reset password and account management (CRUD) functionality.
Published: February 18 2022

.NET 6.0 - Role Based Authorization Tutorial with Example API

How to build an API with role based authorization / access control in .NET 6.0 & C#. Includes example client apps built with Angular, React and Vue.
Published: February 04 2022

.NET 6.0 - Minimal API Tutorial and Example

A step by step tutorial on how to build a minimal .NET 6.0 API from scratch with a couple of example endpoints/routes, with details on every line of code and configuration to show how it all fits together.
Published: February 01 2022

.NET 6.0 - Execute EF Database Migrations from Code on Startup

This is a super quick example of how to automatically migrate database changes on startup from code in .NET 6.0 using Entity Framework in the Program.cs file.
Published: January 31 2022

.NET 6.0 - Database Migrations to Different DB Per Environment (SQLite in Dev, SQL Server in Prod)

An example of how to setup a .NET 6.0 project with Entity Framework Migrations that supports multiple different database providers.
Published: January 24 2022
Last updated: February 20 2023

.NET 6.0 - JWT Authentication with Refresh Tokens Tutorial with Example API

How to implement JWT authentication with Refresh Tokens in a .NET 6.0 API. Includes example client app built with Angular.
Published: January 19 2022

.NET 6.0 - Create and Validate JWT Tokens + Use Custom JWT Middleware

This is a quick example of how to create and validate JWT tokens in .NET 6.0. We'll also cover how to implement custom JWT authentication using custom JWT middleware and a custom authorize attribute.
Published: January 17 2022

.NET 6.0 - Global Error Handler Tutorial with Example

This is a quick post to show how to implement a global exception handler in .NET 6.0
Published: January 16 2022

.NET 6.0 - Hash and Verify Passwords with BCrypt

This is a quick example of how to hash and verify passwords in .NET 6.0 using the BCrypt.Net-Next password hashing library, a C# implementation of the bcrypt password hashing function.
Published: January 07 2022

.NET 6.0 - User Registration and Login Tutorial with Example API

How to build a .NET 6.0 API that supports user registration, login with JWT authentication and CRUD operations. Includes example client apps built with Angular, Blazor, React & Vue.
Published: December 20 2021

.NET 6.0 - Basic Authentication Tutorial with Example API

How to implement Basic HTTP Authentication in .NET 6.0 with C#. Includes example client apps built with Angular, React, Vue & Blazor.
Published: December 14 2021

.NET 6.0 - JWT Authentication Tutorial with Example API

How to implement custom JWT authentication in .NET 6.0 with C#. Includes example client apps built with Angular, React, Vue & Blazor.
Published: October 26 2021

.NET 5.0 - Connect to MySQL Database with Entity Framework Core

In this post we'll go through the steps to connect a .NET API to MySQL using Entity Framework Core, and to create a MySQL database from code using EF Core migrations.
Published: October 21 2021

.NET 5.0 - Connect to SQL Server with Entity Framework Core

In this post we'll go through the steps to connect a .NET API to SQL Server using Entity Framework Core, and to create a SQL Server database from code using EF Core migrations.
Published: October 12 2021

.NET - Return Enum as String from API

This is a quick post to show how to serialize enum values as strings so enum values are returned in API responses instead of the enum indexes.
Published: October 01 2021

.NET - Startup Class in a Nutshell

The Startup class configures the services available to the .NET Dependency Injection (DI) container in the ConfigureServices() method, and configures the .NET request pipeline for the application in the Configure() method.
Published: September 30 2021

.NET - Program Class and Main Method in a Nutshell

The Main method is the entry point for a .NET application, when an app is started it searches for the Main method to begin execution. The method can be located anywhere in a project but is typically placed in the Program class.
Published: September 29 2021

.NET + MSBuild - C# Project File (.csproj) in a Nutshell

A .NET project file is an XML document containing MSBuild code that executes when you run the dotnet build command
Published: September 28 2021

.NET 5.0 - CRUD API Example and Tutorial

Tutorial on how to build a .NET 5.0 API that supports CRUD operations.
Published: September 02 2021

.NET 5.0 - Send an Email via SMTP with MailKit

This is a quick example of how to send an email in .NET 5.0 using the MailKit email client library.
Published: September 01 2021

.NET 5.0 - Boilerplate API with Email Sign Up, Verification, Authentication & Forgot Password

How to build a boilerplate .NET 5.0 API that supports email sign up, verification, authentication, role based access control, forgot password, reset password and account management (CRUD) functionality.
Published: July 29 2021

.NET 5.0 - Role Based Authorization Tutorial with Example API

How to build an API with role based authorization / access control in .NET 5.0 & C#. Includes example client apps built with Angular, React and Vue.
Published: July 18 2021

.NET 5.0 - Bare Bones API Tutorial

A step by step tutorial on how to build a simple bare bones .NET 5.0 API from scratch with a couple of example endpoints/routes, with details on every line of code and configuration to show how it all fits together.
Published: June 24 2021

VS Code + .NET - Debug a .NET Web App in Visual Studio Code

How to create and debug a simple .NET web application in Visual Studio Code.
Published: June 15 2021

.NET 5.0 API - JWT Authentication with Refresh Tokens

How to implement JWT authentication with Refresh Tokens in a .NET 5.0 API. Includes example client app built with Angular.
Published: June 08 2021

.NET 5.0 - Automatic Entity Framework Migrations to SQL Database on Startup

A super quick example of how to automatically migrate database changes from code in .NET 5.0 using Entity Framework in the Startup.cs file.
Published: June 03 2021

.NET 5.0 - Entity Framework Migrations for Multiple Databases (SQLite and SQL Server)

An example of how to setup a .NET 5.0 project with Entity Framework Migrations that supports multiple different database providers.
Published: June 02 2021

.NET 5.0 - Create and Validate JWT Tokens + Use Custom JWT Middleware

This is a quick example of how to create and validate JWT tokens in .NET 5.0. We'll also cover how to implement custom JWT authentication using custom JWT middleware and a custom authorize attribute.
Published: May 29 2021

.NET 5.0 - Global Error Handler Tutorial

This is a quick post to show how to implement a global exception handler in .NET 5.0.
Published: May 27 2021

.NET 5.0 - Hash and Verify Passwords with BCrypt

This is a quick example of how to hash and verify passwords in .NET 5.0 using the BCrypt.Net-Next password hashing library, a C# implementation of the bcrypt password hashing function.
Published: May 26 2021

.NET 5.0 API - Allow CORS requests from any origin and with credentials

This is a quick post to show how to configure a .NET 5.0 API to allow CORS requests from any origin as well as with credentials.
Published: May 25 2021
Last updated: January 07 2022

.NET 5.0 - Simple API for Authentication, Registration and User Management

This tutorial shows how to build a .NET 5.0 API that supports user registration, login with JWT authentication and user CRUD operations. Includes example client apps built with Angular, Blazor, React & Vue.
Published: May 19 2021

.NET 5.0 - Basic Authentication Tutorial with Example API

How to implement Basic HTTP Authentication in .NET 5.0 with C#. Includes example client apps built with Angular, React, Vue & Blazor.
Published: April 30 2021

.NET 5.0 - JWT Authentication Tutorial with Example API

How to implement custom JWT authentication in .NET 5.0 with C#. Includes example client apps built with Angular, React, Vue & Blazor.
Published: November 28 2020

.NET Core C# + AWS SES - Send Email via SMTP with AWS Simple Email Service

In this tutorial we'll go through the steps to enable sending email via SMTP from a .NET Core API using the Amazon Simple Email Service.
Published: November 18 2020

Blazor WebAssembly - Fake Backend Example for Backendless Development

An example of backendless development with Blazor WebAssembly using an HTTP Client Handler, includes "pass through" to real backend for unmocked URLs.
Published: November 09 2020

Blazor WebAssembly - User Registration and Login Example & Tutorial

In this tutorial we'll go through an example of how to build a simple user registration, login and user management (CRUD) application with Blazor WebAssembly.
Published: October 02 2020

ASP.NET Core 3.1 - Global Error Handler Tutorial

This is a quick post to show how to implement a global exception handler in ASP.NET Core 3.1
Published: September 27 2020

Blazor WebAssembly - Authentication Without Identity

This is a quick post to show how to implement custom authentication in ASP.NET Core Blazor without the Identity membership system.
Published: September 20 2020

Blazor WebAssembly - HTTP GET Request Examples

A quick set of examples to show how to send HTTP GET requests from Blazor WebAssembly to a backend API using the HttpClient
Published: September 16 2020

Blazor WebAssembly - HTTP POST Request Examples

A quick set of examples to show how to send HTTP POST requests from Blazor WebAssembly to a backend API using the HttpClient
Published: September 15 2020

Blazor WebAssembly - Display a list of items

This is a quick example to show how to display a list of items in Blazor WebAssembly.
Published: September 12 2020

C# - Encode and Decode Base64 Strings

This is a super quick post to share the below couple of extension methods that simplify encoding and decoding base64 strings in C#.
Published: September 10 2020

Blazor WebAssembly - Basic HTTP Authentication Tutorial & Example

A Custom Basic HTTP Authentication Example built with ASP.NET Core Blazor WebAssembly
Published: August 13 2020

Blazor WebAssembly - JWT Authentication Example & Tutorial

A Custom JWT Authentication Example built with ASP.NET Core Blazor WebAssembly.
Published: August 09 2020

Blazor WebAssembly - Get Query String Parameters with Navigation Manager

This is a quick post to show how you can add a couple of simple extension methods to the NavigationManager class in your Blazor WebAssembly app for accessing query string parameters in the URL.
Published: July 31 2020

Blazor WebAssembly - Form Validation Example

This is a quick example of how to setup form validation in ASP.NET Core Blazor WebAssembly. The example is a simple registration form with pretty standard fields for title, first name, last name, date of birth, email, password, confirm password and an accept terms and conditions checkbox.
Published: July 30 2020

ASP.NET Core Blazor WebAssembly - Communication Between Components

This is a quick tutorial to show how you can send messages between components in a Blazor WebAssembly (WASM) application.
Published: July 21 2020

ASP.NET Core 3.1 - Create and Validate JWT Tokens + Use Custom JWT Middleware

This is a quick example of how to create and validate JWT tokens in ASP.NET Core 3.1. We also cover how to implement custom JWT authentication with custom JWT middleware and a custom authorize attribute.
Published: July 16 2020

ASP.NET Core 3.1 - Hash and Verify Passwords with BCrypt

A quick example of how to hash and verify passwords ASP.NET Core 3.1 using the BCrypt.Net-Next password hashing library which is a C# implementation of the bcrypt password hashing function.
Published: July 15 2020
Last updated: October 17 2020

ASP.NET Core 3.1 - Send Emails via SMTP with MailKit

This is a quick example of how to send an email in ASP.NET Core 3.1 using the MailKit email client library.
Published: July 06 2020
Last updated: May 10 2021

ASP.NET Core 3.1 - Boilerplate API with Email Sign Up, Verification, Authentication & Forgot Password

How to build a boilerplate authentication API with ASP.NET Core 3.1 that includes email sign up & verification, authentication & role based authorization, forgot password & reset password functionality, account management (CRUD) routes with role based access control, and Swagger documentation.
Published: May 26 2020

ASP.NET Core - Setup Development Environment

A quick post to show how to setup an ASP.NET Core development machine.
Published: May 25 2020

ASP.NET Core 3.1 API - JWT Authentication with Refresh Tokens

How to implement JWT authentication with refresh tokens in an ASP.NET Core 3.1 API. Includes example client app built with Angular.
Published: May 20 2020

ASP.NET Core API - Allow CORS requests from any origin and with credentials

This is a quick post to show how to configure an ASP.NET Core API to allow CORS requests from any origin as well as with credentials.
Published: January 03 2020
Last updated: June 04 2020

ASP.NET Core - EF Core Migrations for Multiple Databases (SQLite and SQL Server)

An example of how to setup an ASP.NET Core project with EF Core Migrations that support multiple different database providers.
Published: December 27 2019

ASP.NET Core - Automatic EF Core Migrations to SQL Database on Startup

This is a super quick example of how to automatically migrate database changes from code in ASP.NET Core using Entity Framework Core from the Startup.cs file.
Published: October 21 2019
Last updated: September 10 2020

ASP.NET Core 3.1 - Basic Authentication Tutorial with Example API

How to implement Basic HTTP Authentication in ASP.NET Core 3.1 with C#. Includes example client apps built with Angular, React and Vue.js.
Published: October 16 2019
Last updated: December 13 2019

ASP.NET Core 3.1 - Role Based Authorization Tutorial with Example API

How to build an API with role based authorization / access control in ASP.NET Core 3.1 & C#. Includes example client apps built with Angular, React and Vue.
Published: October 14 2019
Last updated: June 04 2020

ASP.NET Core 3.1 - Simple API for Authentication, Registration and User Management

Simple boilerplate ASP.NET Core 3.1 API that supports User Registration, Login and User Management. Uses SQLite in development & SQL Server in production and includes example client apps built with React, Angular & Vue.
Published: October 11 2019
Last updated: August 13 2020

ASP.NET Core 3.1 - JWT Authentication Tutorial with Example API

How to implement custom JWT authentication in ASP.NET Core 3.1 with C#. Includes example client apps built with React, Angular & Vue.
Published: January 08 2019

ASP.NET Core 2.2 - Role Based Authorization Tutorial with Example API

How to build an API with role based authorization / access control in ASP.NET Core 2.2 & C#. Includes example client apps built with Angular, React and Vue.
Published: October 17 2018

C# - Pure Pagination Logic in C# / ASP.NET

Pure pagination logic written in C# / ASP.NET and available on NuGet. Compatible with ASP.NET Core and ASP.NET Standard projects.
Published: October 15 2018

ASP.NET Core Razor Pages - Pagination Example

An example of how to add pagination to your ASP.NET Core 2.1 Razor Pages application.
Published: September 08 2018
Last updated: January 18 2019

ASP.NET Core 2.2 - Basic Authentication Tutorial with Example API

How to implement Basic HTTP Authentication in ASP.NET Core 2.2 with C#. Includes example client apps built with Angular, React and Vue.js.
Published: August 14 2018
Last updated: January 08 2019

ASP.NET Core 2.2 - JWT Authentication Tutorial with Example API

How to implement JWT authentication in ASP.NET Core 2.2 with C#. Includes example client apps built with React, Angular & Vue.
Published: June 26 2018
Last updated: January 14 2019

ASP.NET Core 2.2 - Simple API for Authentication, Registration and User Management

A clean and simple custom ASP.NET Core API for User Registration, Login with JWT Authentication and User Management.
Published: December 12 2016

C# / ASP.NET - Domain Validation Logic in Domain Driven Design (DDD)

An example showing how and where to implement Domain Model Validation in C# and ASP.NET projects using Domain Driven Design (DDD)
Published: October 30 2015

ASP.NET MVC - Pagination Example with Logic like Google

An example of how to setup Google style pagination logic in C# and ASP.NET MVC.
Published: July 30 2015

Fluent NHibernate - Unproxy Entity Objects with AutoMapper

How to unproxy NHibernate objects to get real entity objects instead of NHibernate proxied classes.
Published: June 03 2015

C# - Incremental Delay to Prevent Brute Force or Dictionary Attack

An example of how to implement an incremental delay in C# to prevent brute force or dictionary attacks on an MVC login form.
Published: July 16 2014

Dynamic LINQ - Using strings to sort by properties and child object properties

I stumbled across the Dynamic LINQ Library today and can't figure out why more people aren't talking about it. It's an awesome little library that allows you to dynamically generate LINQ expressions from strings, which is perfect for things like sorting collections by object property names passed as querystring parameters to web api controllers, it even allows you to sort by child object property names!
Published: May 03 2014

Web API 2 + ELMAH - Log ALL Unhandled Exceptions

I got an email from a client today about an error happening in an application that I'd built with ASP.NET Web API 2.1. At first I thought they must be mistaken or doing something wrong on their end because their weren't any errors being reported by ELMAH which I'd configured in my WebApiConfig.cs file using the ElmahHandleErrorApiAttribute filter.
Published: April 28 2014

Moq - Get Setup() to return a dynamic collection from a fake repository

Read on if you're confused about why your mock repository keeps returning the initial collection even though you've added something to it!
Published: April 18 2014

Post a simple string value from AngularJS to .NET Web API

How to post a simple string parameter in the body of an HTTP request from AngularJS to ASP.NET Web API
Published: February 18 2014

ASP.NET Web API 2 - Enum Authorize Attribute

This post shows you how to create a custom authorization attribute which allows you to pass in a list of enums as parameters to restrict access by role. I'm using this attribute on the controllers of a RESTful Web API built with ASP.NET WEB API 2.
Published: October 16 2013
Last updated: March 11 2016

ASP.NET MVC - Required Checkbox with Data Annotations

How to make a required checkbox in ASP.NET MVC using the built in 'Range' data annotation attribute.
Published: July 31 2013

C# - Get time zone and UTC offset from latitude and longitude (GPS coordinates)

I recently set up an Instagram feed for a travel blog and found that the Instagram API only supplies the UTC created date/time of each image, and doesn't supply the user's UTC Offset (as the Twitter API does), so the only thing you have to work with are the latitude and longitude (lat/long) coordinates to find out the timezone and UTC Offset of where the image was posted.
Published: October 23 2012

Using MVC 4 Web Api with jQuery DataTables

With the release of ASP.NET MVC 4 and Web Api, creating JSON web services has never been easier, which makes it perfect for populating jQuery DataTables via Ajax.
Published: September 20 2012

MVC CheckboxList for property of type IList<Enum>

This is an extension method for creating a checkbox list for a list of enum values (IList<Enum>). It's a modified version of the CheckboxListForEnum extension method I found on the Xango project. Their version creates a checkbox list for a property that contains a single enum value.
Published: July 06 2012

MVC3 redirect to mobile site and stop executing

Response.Redirect(url, true) does NOT stop executing. Automatically redirect iPhone to mobile site.
Published: June 24 2012

ASP.NET MVC3 + Altairis Web Security Toolkit

In this post I'll show you how to install and configure the Altairis Web Security Toolkit in an MVC3 application. The Altairis Web Security Toolkit is a simple, easy to use ASP.NET Membership Provider with a clean table structure. It's much nicer to work with than the default ASP.NET Membership Provider.
Published: November 29 2011

NHibernate - Map Umbraco member profile properties with Custom Interceptor

I'm writing an application that uses NHibernate as the data layer, but is required to integrate with an existing Umbraco system. Specifically, I have a User class that needs to map to an Umbraco member.
Published: November 21 2011

Populate ASP.NET dropdown list with month names using LINQ

Using LINQ and the Enumerable.Range method it's possible to populate a dropdown list of month names in a single line.
Supported by