Inline Recursion in ASP.NET Template to Print a Tree’s Node List

added by Devign
9/17/2010 8:30:52 AM

4 Kicks, 204 Views

Here’s a neat & clean way to perform a recursion in ASP.NET, inside the .aspx/.ascx file. Suitable for ASP.NET MVC as well as WebForms. No <asp:Repeater> + OnItemDataBound event or concatenating strings recursively in the code behind involved. [...]