Thanks for this. I've moved your code sample to the codebank forum for ASP/ASP.NET.