title: How To Pass Value Entered In A Text Box To An Action Method
body: <p>I was building a Movies application using MVC. CRUD was automatically created for me by Visual Studio. Now, I am trying to build a <strong>Search</strong> functionality for the user. Here is the code I wrote:</p>
  
  <pre><code>@using (Html.BeginForm("SearchIndex", "Movies", new {searchString = ??? }))
  {
      &lt;fieldset&gt;
          &lt;legend&gt;Search&lt;/legend&gt;
  
          &lt;label&gt;Title&lt;/label&gt;
          &lt;input type ="text" id="srchTitle" /&gt;
          &lt;br /&gt;&lt;br /&gt;
          &lt;input type ="submit" value="Search" /&gt;
      &lt;/fieldset&gt;    
  }
  </code></pre>
  
  <p>I have built the <strong>SearchIndex</strong> method and the associated view. I just can't find how to pass the value entered in the text box to the SearchIndex action method.
  Please help.</p>