ASP.NET – JSON – Serialization and Deserialization

I was looking around for a simple example which would just do a object serialization to a JSON format, and then deserializing back to the original object. I found few examples on MSDN, but did seem to be too long to try. Here I’ve given a simple code which would make your understanding easy, and [...]

Adding groups to the ASP.NET DropDownList control

Introduction The ASP.NET DropDownList class doesn’t support option groups. (Presumably because it would break the ListItem paradigm that Microsoft has used for all their list orientated controls). However, it is possible to add basic option group functionality by inheriting from DropDownList and overriding the RenderContents() method. This technique for adding optgroups is fully compatible with [...]

c# UK postcode splitting

To maintain consistency with user inputted data, i wrote this small method in order to normalise UK post codes into the standard format. The logic is as follows: Convert all the letters to their uppercase variant. Strip out any character that isn’t letter or a number using regular expressions and remove all spaces from the [...]

Great success.

I’m approaching the ninth month of employment at my placement, and have received an informal offer for full time employment once I have graduated. I couldn’t be happier with this. I love the work that I do, and I know that I have so much more that I can offer the business. With the business now owning [...]