<p>I am writing a webpage in C# .NET.  In javascript there is a function called GetElementsByTagName... this is nice for javascript invoked from the .aspx page.  My question is, is there any way I can have this kind of functionality from my C# code-behind?</p>

<p>--</p>

<p>The scenario for those curious:  I used an asp:repeater to generate a lot of buttons, and now I'm essentially trying to make a button that clicks them all.  I tried storing all the buttons in a list as I created them, but the list is getting cleared during every postback, so I thought I could try the above method.</p>

FindControl(), or iterate through the controls on the page...
```
```
For each ctl as Control in Me.Controls
  If ctl.Name = whatYouWant Then
    do stuff
Next 'ctl
```
```
--If you are creating the controls, you should be setting their ID's
```
```
Dim ctl as New Control()
ctl.ID = "blah1"
```
```
etc...