title: how to get text attribute from a asp:panel
body: <p>Probably a simple question, but I've been browsing now for 30 mins and STILL cant find a solution!</p>
  
  <p>i have a panel and it has an attribute text="something". but the panel class does not seem to have a getAttribute method... Which personally, I think is STUPID!</p>
  
  <p>Code follows:</p>
  
  <pre><code>foreach (Control c in clientGrid.Controls)
  {
      if (c.GetType().ToString().Equals("System.Web.UI.WebControls.Panel"))
      {
          /*Something*/ textInsidePanel = ((Panel)c)./*Somthing*/              
      }
  }
  </code></pre>
  
  <p>Now i've tried <code>AttributeCollection text = ((Panel)c).Attributes</code>;</p>
  
  <p>and</p>
  
  <p><code>string text = ((Panel)c).Attributes.toString();</code></p>
  
  <p>and other useless things...</p>
  
  <p>This should be really simple! when i inspect element on chrome, I can see the panel, (well the div) and i can see the text attribute right there. and i can see its value! but i want my c# code to have the value to!!</p>
  
  <p>Please Help!</p>
  
  <p>Alex</p>