Adding Rendering with SetRenderMethodDelegate() - aeh, sort of
Posted by: Rick Strahls WebLog,
on 23 Jun 2006 |
View original
I stumbled onto something I didn’t know before in ASP.NET control rendering which is bound to prove useful in some scenarios. The Control class has a SetRenderMethodDelegate method that allows specifying a method that is called after a control renders.
So imagine for a minute you have a real happy control like this one:
public class CustomControl : Control
{
protected override void Render(HtmlTextWriter writer)
{
...