title: ASP.NET MVC get textbox input value
body: <p>I have a textbox input and some radio buttons. For example my textbox input HTML looks like that:</p>
  
  <pre><code>&lt;input type="text" name="IP" id="IP" /&gt;
  </code></pre>
  
  <p>Once user clicks a button on a web page I want to pass data to my controller:</p>
  
  <pre><code>&lt;input type="button" name="Add" value="@Resource.ButtonTitleAdd"  onclick="location.href='@Url.Action("Add", "Configure", new { ipValue =@[ValueOfTextBox], TypeId = 1 })'"/&gt;
  </code></pre>
  
  <p>Maybe it is trivial but my problem is that I do not know how to get textbox value and pass it through to the controller. How can I read the textbox value and pass it to the controller through <code>ipValue=@[ValueOfTextBox]</code>?</p>