I was wondering how one would find the controls in the HeaderTemplate or FooterTemplate of an Asp.Net Repeater control.
I can access them on the ItemDataBound event, but I was wondering how to get them after (for example to retrieve a value of an input in the header/footer).
Note: I posted this question here after finding the answer just so that I remember it (and maybe other people might find this useful).
Best Solution
As noted in the comments, this only works AFTER you've DataBound your repeater.
To find a control in the header:
To find a control in the footer:
With extension methods