Adding Rendering with SetRenderMethodDelegate() - aeh, sort of

Posted by: Rick Strahls WebLog, on 23 Jun 2006 | View original | NEW Bookmarked: 0 time(s)

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
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 4583 | Hits: 900

Similar Posts

  • Sort a datatable before binding using DefaultView more
  • Sort a datatable before binding using DefaultView more
  • Extending the GridView to Include Sort Arrows more
  • Improving the Sort Arrows GridView Control more
  • Creating CSS Friendly Websites with ASP.NET 2.0 more
  • Replace SortedDictionary with LINQ query more
  • The problem with posting demos... more
  • Sorting in .Net (don't sort manually, let .Net do it for you) - level 100 more
  • Replace SortedDictionary with LINQ query - Part 2 (with comparison) more
  • Sorting in .Net (don't sort manually, let .Net do it for you) - level 100 more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | 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