I have a Partial that loads the data:
@using (Html.BeginForm("PesquisarEventoPorLocal", "CadastroEvento", FormMethod.Get))
{
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="form-group col-md-3">
<label for="sel2">Pesquisar Por local:</label>
@Html.DropDownList("Pesquisa:", ViewBag.TiposLocal as SelectList, new { @class = "form-control", id = "comboBox", name= "comboBox" })
</div>
<div class="form-group col-sm-3 col-md-3">
<br/>
<button type="submit" class="btn btn-danger">Pesquisar</button>
</div>
</div>
</div>
}
The controller is not passing the data.
[HttpGet]
public ActionResult PesquisarEventoPorLocal()
{
string CodigoLocal = Request.QueryString["PesquisarEventoPorLocal"];
string CodigoLocal1 = Request.QueryString["Pesquisa"];
string CodigoLocal2 = Request.QueryString["comboBox"];
return RedirectToAction("index", "CadastroEvento");
}