title: Loop through all buttons on a page and assign a new text value
body: <p>I've got a page that has several buttons on the page that have the same text assigned to them, and I'm working on localizing the page to a different language based on the user's browser culture.  I was hoping to programmatically cycle through them and relabel them on the fly.  This is what I've tried, and it causes an asp page error:</p>
  
  <pre><code>foreach (Button s in Page.Controls)
  {
      if (s.Text =="search")
      {
         s.Text = "buscar";
      }
  }
  </code></pre>