Overriding the device filters so that the Menu control will work in Safari

This article on Danny Chen’s Blog describes clearing the device filters in a .net app so that the standard menu control will render in safari. I had tried the CSS Friendly adapters but found them needlessly over complicated and difficult to implement without really hacking our corporate CSS. To solve this I now override the control using a writer class and now clear the device filter which means it treats safari the same as IE and FF.