Website development and design blog, tutorials and inspiration


C# Tutorials for people who wish to learn the Microsoft .Net Framework and C# language. We take you from the basic programming concepts all the way through to advanced object orientation techniques, scalable solutions and multi-tier applications.


Posting Form Data to Remote Site using HttpWebRequest
6th July 2011C#
Using this snippet of code you can easily send data using HttpWebRequest Post. The data is sent via the HTTP POST method to a remote server from your code behind.
Simple Directory Listing in C#
26th May 2011C#
This little C# code snippet will produce a recursive directory listing in C# and get a list of all the files and folders in the directory, returning them as a formatted StringBuilder object.
Saving User Preferences and Settings within your C# Application
15th May 2011C#
Microsoft .Net provides a powerful method for storing and retrieving user settings - something almost every application will at some stage need to do. This article will show you how to quickly and easily save settings to the Registry, to a SQL Database or to an XML file.
A Lorem Ipsum Generator Written in C#
22nd March 2011C#
This class will create a Lorem Ipsum generator that can be used to create the famous "Lorem ipsum dolor sit amet" used for a natural looking dummy/placeholder text.
Using Code Analysis to Analyse Your Code Quality
4th March 2011C#
Code analysis provides information about managed assemblies, such as violations of the programming and design rules set forth in the Microsoft .NET Framework Design Guidelines. Warning messages identify any relevant programming and design issues and, when it is possible, supply information about how to resolve issues.
Converting a String Name into a C# Type
6th October 2010C#
There are many occasions when you need to convert a string (from an XML document, database, file and so on) into an instance of a class. For example when you need to create an instance of a class, but the exact type is unknown. This example will show you how to get a type from a string and use reflection to create an instance of it.
Extending the Web Sitemap Xml Document
6th October 2010C#
In this tutorial, we will have a closer look at the web.sitemap document for website navigation and see how to extend it by binding to custom attributes.
C# String Formatting Examples
26th September 2010C#
C# like many other programming languages uses special format characters when constructing a string. These characters affect they way in which data is presented on the screen.