Monday, 19 May 2008

Easy way to store objects in a database using C# / .NET

I wanted a way to save objects easily and quickly to a SQL database in ASP.NET projects, so I wrote a class library that can serialize any object. You can read the article here.

Wednesday, 12 March 2008

Image Button Article

I've updated the article about image buttons. The old buttons did the rollover effect when you moved the mouse anywhere over the button, but the hyperlink only worked if the mouse was over the text. I've worked out how to make the hyperlink work over the whole button now, by specifying padding round the text.

By the way, I'm planning to turn this into an ASP.NET control, so if you're into ASP.NET watch this space!

Friday, 7 March 2008

Wednesday, 5 March 2008

Thursday, 28 February 2008

Date Parsing, Addition and Display in Javascript

Despite there being a lot of articles about date parsing on the internet, I couldn't find any simple examples of how to read a user entered date (e.g. from a text box), and then manipulate it (in my case subtract a day) and then re-display it to the user. So I wrote the following function (you can view this full page by following this link).

Monday, 25 February 2008

Image Buttons Using CSS

I recently wanted to come up some buttons with rollover effects using CSS, where I could use the same image, but different text for each button. The following article describes how I did it (you can view this full page by following this link).

Wednesday, 20 February 2008

Favorite sites

I'll expand on this soon. but for now, two sites that I think are particularly good are:
ASP.NETespecially for the videos about using C# and ASP.NET in visual studio, and
CodeProject which I have always found to have well thought out and easy to use articles and code examples.

Favorite tools

Here's a list of some of the tools that I find really useful.

Visual Studio 2005. Hopefully I'll get to have a go at VS2008 soon...
Firefox. I'm a big Microsoft fan, but even I have to admit - Firefox is much better than IE7.
KDiff3. Very handy for comparing versions of code. I'd also recommend replacing SourceSafe's WinDiff program with KDiff.
Paint.NET for all those images...
Unlocker, for those annoying times when the OS won't let you delete DLLs etc.

I'd love to know if there are any tools that you think are really useful, so please feel free to add a comment to this post. Thanks.