title: Retrieve textbox values in code behind file asp.net
body: <p>Hi I have a crontrol on the page:</p>
  
  <pre><code>&lt;asp:TextBox ID="q" runat="server" autocomplete="off" /&gt;
  </code></pre>
  
  <p>which I'm trying to access the value of from the code behind file.</p>
  
  <p>I've tried:</p>
  
  <pre><code>TextBox searchTerm = FindControl("q") as TextBox;
  </code></pre>
  
  <p>But it doesn't work.</p>