title: How to pass a value from TextBox as parameter to Action
body: <p>This is what I've had in mind but of course it doesn't work.</p>
  
  <pre><code>@{
      var textBoxData = form.find('input[name="textboxList"]').val();
   } 
  &lt;input type="button" value="Add"  title="Add"  onclick="location.href='@Url.Action("Create_Add", "Controller", new { textboxList = textBoxData })'" /&gt;
  </code></pre>
  
  <p>How should I pass this? Controller action name and parameter are correct. Just that I don't know how to get the value entered in textbox...</p>
  
  <p>I have trouble with saving a form within a form, so someone suggested this solution. Proxy code would be:</p>
  
  <pre><code>&lt;firstForm&gt;
     textboxfor Name
     dropdownfor DType
  
     If DTypeDDL value is "List" then
         &lt;secondForm&gt;
              textboxfor nameOfItem
              submitSecondForm (using that method i mentioned above)
         &lt;/secondForm&gt;
     End If
  
     submitFirstForm
  &lt;/firstForm&gt;
  </code></pre>
  
  <p>I've been trying to save 2 forms for quite a while now but no luck. This is basically my last resort.</p>