Friday, October 1, 2010

ASP.NET Control.SetRenderMethodDelegate()

I was looking for a way to inject a WebControl as the next sibling of another HtmlControl where they may not be in a control tree yet. The post Adding Rendering with SetRenderMethodDelegate() - aeh, sort of seemed like a possibility but didn't eventuate as certain controls (Panels) would render their outer content before passing off the the rendering delegate.