title: C# - How to pass html input value to url.Action
body: <p>I have an <code>input</code> and a <code>button</code>. input's value supposed to be passed to <code>@url.Action</code> like description in code below:</p>
  
  <pre><code>&lt;input class="in-class" id="textbox" type="text" runat="server" /&gt;
  &lt;button class="btn-class" id="press" type="button" onclick="location.href='@Url.Action("Index", "Home", new {id = /*Value Of textbox*/ })'" &gt;click here&lt;/button&gt;
  </code></pre>
  
  <p>As I mentioned in code, <code>/*Value Of textbox*/</code> should be input's current value.</p>