Find first parent control of a specific type using recursion

By |2011-01-05T22:53:16+00:00January 5th, 2011|Categories: ASP.NET|Tags: , |

Just like the title says.  There have been some scenarios where I have had to search a controls parents until I find a specific control of type.  A common example would be within a datagrid.  Say you have a button that fires, and you need to to call Update() on a parent updatePanel.  But you don't [...]