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)     {       ...

Advertisement

News Categories

.NET | ADO.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Community Server | dasBlog | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD