R – Programatic Access to DragHandleTemplate in ASP.NET AJAX ReorderList


Is there a way to programatically access the DragHandleTemplate of a ReorderList (ASP.NET AJAX Control Toolkit) … Specifically during ItemDataBound for the ReorderList, in order to change its appearance at the per item level?

Best Solution

You can also express FindControlRecursive in LINQ:

        private Control FindControlRecursive(Control root, string id)
            return root.ID == id
                       ? root
                       : (root.Controls.Cast<Control>().Select(c => FindControlRecursive(c, id)))
                             .FirstOrDefault(t => t != null);
Related Question