title: Checking for the control type
body: <p>I am able to get the IDs of all the controls of a page and also their type, in the page when i print it it shows</p>
  
  <pre><code>myPhoneExtTxt Type:System.Web.UI.HtmlControls.HtmlInputText
  </code></pre>
  
  <p>this is generated based on this code</p>
  
  <pre><code>    foreach (Control c in page)
      {
          if (c.ID != null)
          {
              controlList.Add(c.ID +" Type:"+ c.GetType());
          }
      }
  </code></pre>
  
  <p>But now i need to check its type and access the text in it if its of type HtmlInput and i am not quite sure how to do that.</p>
  
  <p>Like</p>
  
  <pre><code>if(c.GetType() == (some htmlInput))
  {
     some htmlInput.Text = "This should be the new text";
  }
  </code></pre>
  
  <p>how can i do this, i think you get the idea?.</p>