Website development and design blog, tutorials and inspiration

C#

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.

 

Using C# to Recursively Call FindControl in ASP.Net
29th January 2010C#
In ASP.Net I often need to use the recursively use FindControl to get an object reference to a control on the ASPX page. The only problem with this is that you need to know the control that it is contained with. This recursive method will search for a given control within a parent control and all it's child controls.
Ultimate Guide to FTP using C#
28th January 2010C#
How to use the FtpWebRequest and FtpWebResponse classes to create a FTP utility class which will allow us to retrieve a directory listing, download files, upload files and delete files.
Adding StyleSheets to ASP.Net via C#
22nd January 2010C#
In some situations you may want to add link information to the html header, for example stylesheets or RSS feeds. This can be done by hard coding into the .aspx file but what about dynamically adding links? In this tutorial we will see how to manually add HtmlLinks using C# code behind.
Generate MD5 Hash of String
25th June 2009C#
This short snippet will generate an MD5 hash of a given string value in C#
Format A Number as KB, MB or GB with C#
1st May 2009C#
This short snippet can be used to pretty format a number of a file size (in bytes) into a pretty string that includes file size metric.
Introduction to Microsoft MVC.Net
5th March 2009C#
Introduction to the Microsoft ASP.Net MVC framework showing you everything that you need to build an application using this tool.
Generate a Random Strings of Characters with C#
6th February 2009C#
Generate random strings of a given length containing either upper case or lower case letters with this short snippet.
Calculate MD5 Checksum for a File using C#
25th January 2009C#
This is little snippet I have used when validating an important file copy. I compare the original checksum with the destination checksum, both returned from this code sample.