title: .net C# post value as a querystring to another page with button
body: <p>beginner here looking for a good way to post data from a textbox to another page as a query string</p>
  <pre><code>&lt;div class=&quot;col-md-4&quot;&gt;
          &lt;h2&gt;Find a Player&lt;/h2&gt;
          &lt;p&gt;
              &lt;img alt=&quot;Find a Player&quot; src=&quot;images/user.png&quot; style=&quot;width: 64px; height: 64px&quot; /&gt;&lt;asp:TextBox ID=&quot;TextBox1&quot; runat=&quot;server&quot;&gt;&lt;/asp:TextBox&gt;
              &lt;asp:Button ID=&quot;Button2&quot; runat=&quot;server&quot; Text=&quot;Submit&quot; /&gt;
          &lt;/p&gt;
          &lt;p&gt;
  </code></pre>
  <p>Just trying to get it to post to:</p>
  <p>http:\website\depth_chart?recid=griffey</p>
  <p>where griffey is the data that was put into the textbox.</p>