title: Pass the dropdown selected value to the view in Html.BeginForm()
body: <p>I need to pass the values of the fields from the view to the controller. My code works for the textbox but does not work for the dropdown. I have seen many answers for Html.DropdownlistFor but none for this case. Is there a way I can do this?</p>
  
  <p>View :</p>
  
  <pre><code>@var searchTypes = new SelectList(new[]
  {
     new SelectListItem {Value = "0", Text = "Email"},
     new SelectListItem {Value = "1", Text = "Last Name"},
     new SelectListItem {Value = "2", Text = "First Name"},
  }, "Value", "Text");
  
   @using (Html.BeginForm("Index", "Users", new { isSearch = 1, searchTerm = "SearchTerm", searchType="ddlSearchType" }, FormMethod.Post))
  {
    &lt;div class="well well-sm search"&gt;
        &lt;div class="row"&gt;
        &lt;div class="col-sm-6"&gt;
          &lt;div class="form-group"&gt;
              @Html.TextBox("SearchTerm",(string)ViewBag.SearchTerm, new {name= "SearchTerm", @class = "form-control", placeholder = "Search Term" })
  
          &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div class="col-sm-3"&gt;
          &lt;div class="form-group"&gt;
              &lt;div class="controls"&gt;
                  @Html.DropDownList("ddlSearchType", searchTypes, new { id = "searchtypeselect", @class = "form-control" })
  
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div class="col-sm-2"&gt;
          &lt;button class="btn btn-primary pull-right" type="submit"&gt;&lt;i class="glyphicon glyphicon-search"&gt;&lt;/i&gt;Search&lt;/button&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  }
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>public ActionResult Index(int? isSearch,string searchTerm,string searchType)
  {
  
  }
  </code></pre>
  
  <p><a href="https://stackoverflow.com/a/29889453/7793375">This answer</a> tackles the same issue but it does not have a text box in the view. </p>
  
  <p>To clarify, the search portion is only a part of my view. I have a paged list below it. So I need the IsSearch field to see if the search button is pressed or if it is a change of page which will also go to the same action method.</p>