title: Use textbox value on submit as a query string variable
body: <p>How would I take a text box value and use it in the query string on submit? I'd like it to start as this,</p>
  
  <p>/News?favorites=True</p>
  
  <p>and end up something like this after the user enters in a search and clicks search.</p>
  
  <p>/News?query=test&amp;favorites=True</p>
  
  <p>The controller action looks like this</p>
  
  <pre><code>public ActionResult Index(string query,bool favorites)
  {
     //search code   
  }
  </code></pre>
  
  <p>This <a href="https://stackoverflow.com/questions/1355547/getting-value-from-an-asp-net-mvc-textbox-on-submit-click">question</a> is something close to what I'd like to do, but I'd like to use the query string and maintain the existing values in the query string.  </p>
  
  <p>Thanks.</p>